Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop setting ACLs when publishing templates to S3 #1412

Merged
merged 1 commit into from
Dec 12, 2024
Merged

stop setting ACLs when publishing templates to S3 #1412

merged 1 commit into from
Dec 12, 2024

Conversation

yob
Copy link
Contributor

@yob yob commented Dec 11, 2024

We recently changed the S3 bucket that holds public CloudFormation templates for the elastic stack from old fashioned ACLs to new fashioned Bucket Owner with Bucket Resource Policy that grants public read access.

Now, this script is failing with an error:

upload failed: build/mappings.yml to s3://buildkite-aws-stack/secrets-2-2-0/mappings.yml An error occurred (AccessControlListNotSupported) when calling the PutObject operation: The bucket does not allow ACLs

I think removing the --acl flag from our publish command should fix that.

We recently changed the S3 bucket that holds public CloudFormation
templates for the elastic stack from old fashioned ACLs to new fashioned
Bucket Owner with Bucket Resource Policy that grants public read access.

Now, this script is failing with an error:

    upload failed: build/mappings.yml to s3://buildkite-aws-stack/secrets-2-2-0/mappings.yml An error occurred (AccessControlListNotSupported) when calling the PutObject operation: The bucket does not allow ACLs

I think removing the --acl flag from our publish command should fix
that.
Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yob yob merged commit f37669c into main Dec 12, 2024
1 check passed
@yob yob deleted the no-acls branch December 12, 2024 00:43
@yob
Copy link
Contributor Author

yob commented Dec 12, 2024

I confirmed this fixed publishing the templates to s3:

CleanShot 2024-12-12 at 12 29 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants