Replacing
# demo.aws_ec2.yml plugin: amazon.aws.aws_ec2 # This sets the region. If empty (the default) default this will include all regions, except possibly # restricted ones like us-gov-west-1 and cn-north-1. regions: - us-east-1 aws_profile: xxx
for i in `grep "^\[" ~/.aws/credentials | sed 's/[][]//g'`; do cp demo.aws_ec2.yml aws_ec2-$i.yml; sed -i '' -e "s/xxx/$i/" aws_ec2-$i.yml; done
Recent Comments