ecs-refarch-continuous-deployment icon indicating copy to clipboard operation
ecs-refarch-continuous-deployment copied to clipboard

Access to S3 is denied

Open shrdaga opened this issue 6 years ago • 23 comments

Access to S3 is denied. Can you provide the access to S3?

shrdaga avatar Aug 20 '18 16:08 shrdaga

This is fixed now. Thanks.

tiffanyfay avatar Sep 21 '18 23:09 tiffanyfay

Looks like S3 access is denied again

carter3d avatar Apr 18 '19 15:04 carter3d

Thanks. Looking into it.

tiffanyfay avatar Apr 18 '19 17:04 tiffanyfay

Facing the same issue.

kkalavantavanich avatar Apr 26 '19 08:04 kkalavantavanich

Thanks. I am hoping this will be resolved soon.

tiffanyfay avatar Apr 26 '19 20:04 tiffanyfay

Template URLs should be changed to: https://https://s3-${AWS::Region}.amazonaws.com/${TemplateBucket}/templates/xxx.yaml

romafederico avatar Apr 30 '19 08:04 romafederico

@kkalavantavanich @carter3d It should be fixed now!

@romafederico The path was not the issue. It's the s3 permissions.

tiffanyfay avatar May 06 '19 23:05 tiffanyfay

Am getting "Template validation error: S3 error: Access Denied". Can you please help for this.

khanna-vijay avatar May 14 '19 15:05 khanna-vijay

@vijay-khanna At what point are you getting this and what region? I just launched it in Virginia. Thanks.

tiffanyfay avatar May 14 '19 18:05 tiffanyfay

@vijay-khanna At what point are you getting this and what region? I just launched it in Virginia. Thanks.

@tiffanyfay :

I get this just when i click "Deploy"- "Rocket Launcher Icon" for all regions on this page. https://github.com/awslabs/ecs-refarch-continuous-deployment

the error is : Error Template validation error: S3 error: Access Denied For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html

khanna-vijay avatar May 14 '19 18:05 khanna-vijay

@vijay-khanna Does your user have s3 permissions?

If you have your CLI set up, can you get the file? aws s3 cp s3://ecs-refarch-continuous-deployment/ecs-refarch-continuous-deployment.yaml

tiffanyfay avatar May 14 '19 18:05 tiffanyfay

@tiffanyfay : I have logged in as Administrator, and have been able to launch other CloudFormation Templates. This is the one i just launched for testing the access issue : https://github.com/awslabs/aws-full-stack-template.

It got deployed fine.

I guess your S3 bucket hosting this code is possibly disabled for Reads at Global level, with new S3 Permissions coming in recently.

i tried the command from CLI and get below error "fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden"

Can you please check your S3 bucket if the "Block all public access" has been enabled.

khanna-vijay avatar May 14 '19 18:05 khanna-vijay

@vijay-khanna It's not my bucket and belongs to another team. I'll look into it. Thanks.

tiffanyfay avatar May 14 '19 18:05 tiffanyfay

@vijay-khanna Can you try now? And yes, that amongst a few other things were enabled.

tiffanyfay avatar May 15 '19 18:05 tiffanyfay

@ tiffanyfay : This is working fine. Thanks for your help.

khanna-vijay avatar May 16 '19 01:05 khanna-vijay

@vijay-khanna Great thanks!

tiffanyfay avatar May 16 '19 16:05 tiffanyfay

@tiffanyfay I'm getting the same error.

smrutiranjantripathy avatar May 29 '20 11:05 smrutiranjantripathy

@smrutiranjantripathy Ugh not again :(. I left Amazon and don't have the contact of the people who got this fixed before.

@jpignata Could you contact the people you had referred me to previously? I didn't keep their emails. Thanks.

tiffanyfay avatar May 29 '20 17:05 tiffanyfay

Looks like the issue is back.

TheToddLuci0 avatar Jul 13 '20 15:07 TheToddLuci0

back to the old access denied issue looks like... anyone has a different location for the template?

sthanushkodi avatar Dec 16 '23 18:12 sthanushkodi

@tiffanyfay The bucket has not access. Can you help us?

pedrofurtado avatar Mar 27 '24 18:03 pedrofurtado

This bucket is no longer provided online. Note that this reference architecture is 7 years old at this point, and you should consider using a more modern version of it. For example:

  • https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/automatically-build-ci-cd-pipelines-and-amazon-ecs-clusters-for-microservices-using-aws-cdk.html
  • https://docs.aws.amazon.com/codepipeline/latest/userguide/ecs-cd-pipeline.html

That said, you can find the template source code here: https://github.com/awslabs/ecs-refarch-continuous-deployment/tree/master/templates

nathanpeck avatar Mar 27 '24 18:03 nathanpeck

@pedrofurtado I don't work at Amazon anymore so I am not sure about how to fix the bucket. I talked to Nathan and would go with what he sent.

tiffanyfay avatar Mar 27 '24 20:03 tiffanyfay