Ansible and Dynamic Amazon EC2 Inventory Management
Error:
[root@ip-0.0.0.0]# /etc/ansible/ec2.py
region name: us-east-1b likely not supported, or AWS is down. connection to region failed.
or
[root@ip-0.0.0.0]# /etc/ansible/ec2.py
region name: ap-south-1 likely not supported, or AWS is down. connection to region failed.
Solution:
ec2.ini
Default value of
regions = all
regions_exclude = us-gov-west-1,cn-north-1,ap-south-1,us-east-1b
One of regions not working which is us-east-1b so just add this in regions_exclude.
regions = all
regions_exclude = us-gov-west-1,cn-north-1,us-east-1b,ap-south-1
OR
regions = add-your-zone.
Run now.
[root@ip-host-name opt]# /etc/ansible/ec2.py
{
"_meta": {
"hostvars": {
"IP": {
"ansible_ssh_host": "IP",
"ec2__in_monitoring_element": false,
"ec2_ami_launch_index": "0",
"ec2_architecture": "x86_64",
"ec2_block_devices": {
"sda1": "vol-84"
},
Happy learning and implementation!!!
D-Link Router Login The default IP is 192.168.0.1 or click here http://192.168.0.1. You can also log into your router using the following link- http://dlinkrouter.local
ReplyDeleteGreat Article
ReplyDeleteCloud Computing Projects
Networking Projects
Final Year Projects for CSE
JavaScript Training in Chennai
JavaScript Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
Other good links are:
ReplyDeleteIT demanded course ansible, jenkins, terraform, and packer with best price in Udemy
What is best continuous integration tool in on-premises and cloud?
What are the best source for learn Infrastructure as a Code by Terraform in AWS?
Cloud enable you to trade CAPEX for OPEX
What is best tools for configuration management in on-premises and cloud?
How to start my career in DevSecOps?
Which environment is more secure on-premises (Data Center) or Cloud (AWS/OCI/Azure/GCP/Other)?
AWS Console & AWS Services
What are the main services we should learn in Amazon Web Services (AWS)?