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

iot cloud install error #11

Open
microfoundry opened this issue Jul 11, 2023 · 2 comments
Open

iot cloud install error #11

microfoundry opened this issue Jul 11, 2023 · 2 comments

Comments

@microfoundry
Copy link

I attempted to run through the "iot cloud install" process and always ended up with the same failure message:

Iotcdk: creating CloudFormation changeset...
1:31:22 AM | CREATE_FAILED | AWS::CloudFormation::Stack | s3NestedStacks3Nes...ckResource4EAEB761
Embedded stack arn:aws:cloudformation:eu-central-1:417160830473:stack/Iotcdk-s3NestedStacks3NestedStackResource4EAEB761-1ELTKXCH9QTLV/907d6930-1f8a-11ee-8173-02aa7e4719f4 was
not successfully created: The following resource(s) failed to create: [s3generatorbucket374CC269, s3templatebucket9F64E024, s3twinmediabucket21FC0B3C, s3dashboardbucket988996B
F, s3fwupdatebucket874CB9FE].

❌ Iotcdk failed: Error: The stack named Iotcdk failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Embedded stack arn:aws:cloudformation:eu-central-1:417160830473:stack/Iotcdk-s3NestedStacks3NestedStackResource4EAEB761-1ELTKXCH9QTLV/907d6930-1f8a-11ee-8173-02aa7e4719f4 was not successfully created: The following resource(s) failed to create: [s3generatorbucket374CC269, s3templatebucket9F64E024, s3twinmediabucket21FC0B3C, s3dashboardbucket988996BF, s3fwupdatebucket874CB9FE].
at FullCloudFormationDeployment.monitorDeployment (/usr/lib/node_modules/aws-cdk/lib/index.js:327:10235)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async deployStack2 (/usr/lib/node_modules/aws-cdk/lib/index.js:330:144733)
at async /usr/lib/node_modules/aws-cdk/lib/index.js:330:130251
at async run (/usr/lib/node_modules/aws-cdk/lib/index.js:330:128257)

❌ Deployment failed: Error: Stack Deployments Failed: Error: The stack named Iotcdk failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Embedded stack arn:aws:cloudformation:eu-central-1:417160830473:stack/Iotcdk-s3NestedStacks3NestedStackResource4EAEB761-1ELTKXCH9QTLV/907d6930-1f8a-11ee-8173-02aa7e4719f4 was not successfully created: The following resource(s) failed to create: [s3generatorbucket374CC269, s3templatebucket9F64E024, s3twinmediabucket21FC0B3C, s3dashboardbucket988996BF, s3fwupdatebucket874CB9FE].
at deployStacks (/usr/lib/node_modules/aws-cdk/lib/index.js:330:130558)
at async CdkToolkit.deploy (/usr/lib/node_modules/aws-cdk/lib/index.js:330:146782)
at async exec4 (/usr/lib/node_modules/aws-cdk/lib/index.js:385:51296)


*** Newer version of CDK is available [2.87.0] ***
*** Upgrade recommended (npm install -g aws-cdk) ***


Stack Deployments Failed: Error: The stack named Iotcdk failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Embedded stack arn:aws:cloudformation:eu-central-1:417160830473:stack/Iotcdk-s3NestedStacks3NestedStackResource4EAEB761-1ELTKXCH9QTLV/907d6930-1f8a-11ee-8173-02aa7e4719f4 was not successfully created: The following resource(s) failed to create: [s3generatorbucket374CC269, s3templatebucket9F64E024, s3twinmediabucket21FC0B3C, s3dashboardbucket988996BF, s3fwupdatebucket874CB9FE].

@microfoundry
Copy link
Author

microfoundry commented Jul 11, 2023

I spotted this in the CloudFormation: Iotcdk-s3NestedStacks3NestedStackResource4EAEB761-1ELTKXCH9QTLV: Events:
Same basic error on each of the 5x S3 bucket objects.

Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting (Service: Amazon S3; Status Code: 400; Error Code: InvalidBucketAclWithObjectOwnership; Request ID: BMM23XRGS1XPC9P2; S3 Extended Request ID: SUpTp9XaFL/F3WpV8nFOl6v6fwdVKyYkdqAmn4ROsbpVMIZwUrr+fbc5wXJKkKMni4x8X+b6hd4=; Proxy: null)

@lukaszaj
Copy link

I've got a similar issue, backend deployment always trips up on those S3 buckets. I see two problems here, first of all the bucket names won't be unique (assuming anyone deployed this successfully, unless they get cleaned up later in the process) and also bucket names can't contain upper case characters.
The bootstrap stage completes without problems, this error comes up during Team deployment.
Any ideas on how to fix it would be great :)

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

2 participants