I am totally new to AWS CloudFormation templates, I am a python web developer. But suddenly my manager asked me (on client's requirement) to check if - can we create a generic AWS CloudFormation template to create/update resources for all the regions across multiple accounts.
So, I googled it but I didn't get much idea about CloudFormation Region Mappings. As its going difficult for me to understand Cloudformation completely in a short time period.
So, I'm curious is it possible?
Example: Let us say if I have to create an S3 bucket in 3 accounts across all the regions.
{
"Resources" : {
"some-bucket" : {
"Type" : "AWS::S3::Bucket"
}
}
}
Can anyone guide me if that case is possible? If so
- What can be the approach?
- Mapping all the regions in template would work?
- Can we do it using python's troposphere?(Optional - As I would prefer to write the code in python)