Problem in downloading AWS programatic bills from Master Account S3 Bucket to Linked account EC2 instance with CLI
There are certain restriction for this activity and this restriction only applies to access Programmatic Billing access.
How to do this?
EC2 instance got created in Linked account.
Configured EC2 instance with # aws configure command with Linked account "Access Key" and "Secure Access Key"
Need to use # aws configure
and this time we need to give Master account's "Access Key" and "Secure Access Key" to reconfigure EC2- CLI
Note: This is the only exception for Billing account. For other S3 bucket in other account, you need to set only Bucket Policy
aws s3 cp s3://Master-Account-Billing-Bucket . --recursive
or
aws s3 cp s3://Master-Account-Billing-Bucket /home/dir --recursive
How to do this?
EC2 instance got created in Linked account.
Configured EC2 instance with # aws configure command with Linked account "Access Key" and "Secure Access Key"
Need to use # aws configure
and this time we need to give Master account's "Access Key" and "Secure Access Key" to reconfigure EC2- CLI
Note: This is the only exception for Billing account. For other S3 bucket in other account, you need to set only Bucket Policy
aws s3 cp s3://Master-Account-Billing-Bucket . --recursive
or
aws s3 cp s3://Master-Account-Billing-Bucket /home/dir --recursive
Comments