Using Console
Using CLI
<bucket-name>
with a unique name for your S3 bucket and <region>
with the region where you want to create the bucket.Step 2: Run the following command to create an IAM role that AWS Config will use to access the S3 bucket:trust-policy.json
with the following content:<bucket-name>
with the name of the S3 bucket you created in Step 1 and <account-id>
with your AWS account ID.Step 5: Verify that AWS Config is enabled and the S3 bucket and IAM role are configured correctly by running the following command:Using Python
boto3
library to interact with AWS services.boto3
client for AWS Config service.my-delivery-channel
and my-s3-bucket
with your own delivery channel name and S3 bucket name respectively.