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

Unable to deploy successfully when using S3 access point #2261

Closed
SurrealTiggi opened this issue Sep 30, 2020 · 2 comments
Closed

Unable to deploy successfully when using S3 access point #2261

SurrealTiggi opened this issue Sep 30, 2020 · 2 comments

Comments

@SurrealTiggi
Copy link

SurrealTiggi commented Sep 30, 2020

Description

Not sure if this a bug per se, or just a lacking feature due to CloudFormation limitations. Basically, I use sam to deploy resources to multiple AWS accounts, but was wondering if a central S3 bucket can be used for artifacts.
SAM itself logs an expected regex to --s3-bucket that seems to support S3 access points.

Steps to reproduce

  • Create a simply sam template
  • Configure a public S3 bucket with an access point
  • Attempt to deploy

I attempted to create this within the same AWS account. Running sam deploy with --s3-bucket <local_bucket_name> deploys successfully.

Observed result

$ sam deploy --debug --stack-name test-stack --capabilities CAPABILITY_IAM --s3-bucket arn:aws:s3:eu-west-1:<aws_account_id>:accesspoint/<accesspoint_name> --s3-prefix test

	Deploying with following values
	===============================
	Stack name                 : test-stack
	Region                     : eu-west-1
	Confirm changeset          : False
	Deployment s3 bucket       : <same as above>
	Capabilities               : ["CAPABILITY_IAM"]
	Parameter overrides        : {}

Initiating deployment
=====================
No Parameters detected in the template
1 resources found in the template
Found Serverless function with name='TestFunc' and CodeUri='.'
Uploading to test/123456789abcdefghijklmnopqrstuvwxyz.template  591 / 591.0  (100.00%)

Error: Failed to create changeset for the stack: test-stack, An error occurred (InternalFailure) when calling the CreateChangeSet operation (reached max retries: 4): Unknown

Expected result

Stack is successfully created, with artifacts stored in a central S3 bucket

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS:
    Mac
  2. sam --version:
    SAM CLI, version 1.2.0
@prenx4x prenx4x added type/feature Feature request stage/pm-review Waiting for review by our Product Manager, please don't work on this yet labels Oct 19, 2020
@jfuss
Copy link
Contributor

jfuss commented Dec 21, 2022

This appears to be an issue from CloudFormation as the upload was successful, from looking at the logs. If you are still hitting this issue, I would encourage you to contact AWS Support.

Closing as this is a service issue not CLI.

@jfuss jfuss closed this as completed Dec 21, 2022
@jfuss jfuss removed the stage/pm-review Waiting for review by our Product Manager, please don't work on this yet label Dec 21, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 21, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

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

No branches or pull requests

4 participants