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

CloudFormation Script fails on s3 bucket creation #10

Open
donhenton opened this issue Aug 14, 2019 · 5 comments
Open

CloudFormation Script fails on s3 bucket creation #10

donhenton opened this issue Aug 14, 2019 · 5 comments
Assignees

Comments

@donhenton
Copy link

Maybe I missed something but I wasn't able to press the magic button on the setup section. I got a 'permissions denied' error on the bucket creation. I think this may be due to the change in the way s3 buckets can be configured for website (public access).

To get that script to work I did this:

  • pull json from the designer
  • modify the output section,adding condition to S3WebsiteURL section:
 "S3WebsiteURL": {
            "Description": "This is the DNS name of your S3 site",
            "Value": {
                "Fn::GetAtt": [
                    "MythicalBucket",
                    "WebsiteURL"
                ]
            },
	    "Condition": "MakeBucket"
        }
  • run the script with MakeBucket false
  • create an s3 website capable bucket
  • in the cloudnine environment run setup script passing in unique s3 name of website bucket

when performing cleanup, lots of things failed, this may help, before deleting stack:

  • remove all images from the repositories
  • stop all services on the clusters
  • wait a long time, (1 hr) still will get failures mostly with the IPs and VPC but they can be deleted manually

Hope this helps somebody. This was a VERY useful tutorial

@jasonumiker
Copy link

jasonumiker commented Sep 9, 2019

My theory is that you had this turned on which blocked the bucket creation with public permissions. Turning it off before deploying the stack should do it. I had that off and it works for me in Oregon. https://aws.amazon.com/blogs/aws/amazon-s3-block-public-access-another-layer-of-protection-for-your-accounts-and-buckets/

@hub714
Copy link
Contributor

hub714 commented Oct 12, 2019

Yeah a couple things changed from when we initially created this workshop. We'll look into it.

@hub714 hub714 self-assigned this Oct 12, 2019
@jarednielsen
Copy link

Same issue here. Would love help on a workaround.

@hub714
Copy link
Contributor

hub714 commented Dec 17, 2019

@jarednielsen The bucket should create successfully now with CloudFormation. Where you might still run into issues is when you upload an object. Where did you run into the problem?

@jarednielsen
Copy link

The bucket creates successfully, but I'm unable to upload an object because of blocked public access. Is there a workaround for an account with blocked public access?

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

No branches or pull requests

4 participants