b1c0f99c04
It generates JSON file in the end with the upload results: ``` {"aws":{"regions":{"eu-central-1":{"arch":{"amd64":{"ami_id":"ami-0f559e06baf488ee1"},"arm64":{"ami_id":"ami-01edd1830a3c5d95c"}}},"eu-west-3":{"arch":{"amd64":{"ami_id":"ami-020f95a280c4c1c55"},"arm64":{"ami_id":"ami-0edcc7d694931a52c"}}}}}} ``` Regions, architectures can be modified as well. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
35 lines
657 B
JSON
35 lines
657 B
JSON
{
|
|
"Version":"2012-10-17",
|
|
"Statement":[
|
|
{
|
|
"Effect":"Allow",
|
|
"Action":[
|
|
"s3:ListBucket",
|
|
"s3:GetBucketLocation"
|
|
],
|
|
"Resource":[
|
|
"arn:aws:s3:::*"
|
|
]
|
|
},
|
|
{
|
|
"Effect":"Allow",
|
|
"Action":[
|
|
"s3:GetObject"
|
|
],
|
|
"Resource":[
|
|
"arn:aws:s3:::*/*"
|
|
]
|
|
},
|
|
{
|
|
"Effect":"Allow",
|
|
"Action":[
|
|
"ec2:ModifySnapshotAttribute",
|
|
"ec2:CopySnapshot",
|
|
"ec2:RegisterImage",
|
|
"ec2:Describe*"
|
|
],
|
|
"Resource":"*"
|
|
}
|
|
]
|
|
}
|