Utility files and instructions for creating and managing S3 resources related to Appcues data exporting
- Download the
cloudformation-s3-data-exports.yamlfile - Head over to AWS CloudFormation and click
Create Stack. - Choose
Upload a template filein theSpecify Templatesection and upload thecloudformation-s3-data-exports.yamlfile downloaded earlier and clickNext - On step 2 enter a Stack Name to help you identify this CloudFormation Stack later.
- Also on step 2, enter a BucketName. This is where your data exports will be uploaded to. This must be unique across all AWS so something clear like
companyname-appcues-s3-data-exportsis a good starting point - Click
Nextpast the Configure Stack Options step (no need to change anything) - Click
Create stackat the bottom of the Review step (no need to change anything here either) and CloudFormation will take a bit to run, and once you seeCREATE_COMPLETEin the status column, everything is done 👍. - After everything is done, head over to AWS S3 and note the AWS Region your bucket is in.
Once the above steps are done, just let us know the BucketName you chose, AWS Region, and if you would like a custom path. For example, by default files are uploaded with date paths: customer-bucket/YYYY/MM/DD/export-file but you can add an additional path: customer-bucket/**some/path/here**/YYYY/MM/DD/export-file. A custom path is not necessary.
If you are unwilling/unable to create a new bucket and/or wish to use an existing bucket, please ensure the following bucket-policy has been applied to that bucket:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "GrantPutObjectToAppcues",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::121185820226:root"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::YOUR-BUCKET-NAME-GOES-HERE/*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control"
}
}
}
]
}As shown, you will retain all ownership of objects placed in this bucket via this policy. Appcues cannot delete objects we place there.