(cli): "Invalid config." when doing tutorial and adding `publicReadAccess: true`
See original GitHub issueI am trying to do step 2 of the tutorial.
Reproduction Steps
- Add
publicReadAccess: true
to CDK S3 config - Run
cdk diff
- Recieve output:
cdk diff
Stack HelloCdkStack
IAM Statement Changes
config {
border: {
topBody: '\u001b[90m─\u001b[39m',
topJoin: '\u001b[90m┬\u001b[39m',
topLeft: '\u001b[90m┌\u001b[39m',
topRight: '\u001b[90m┐\u001b[39m',
bottomBody: '\u001b[90m─\u001b[39m',
bottomJoin: '\u001b[90m┴\u001b[39m',
bottomLeft: '\u001b[90m└\u001b[39m',
bottomRight: '\u001b[90m┘\u001b[39m',
bodyLeft: '\u001b[90m│\u001b[39m',
bodyRight: '\u001b[90m│\u001b[39m',
bodyJoin: '\u001b[90m│\u001b[39m',
joinBody: '\u001b[90m─\u001b[39m',
joinLeft: '\u001b[90m├\u001b[39m',
joinRight: '\u001b[90m┤\u001b[39m',
joinJoin: '\u001b[90m┼\u001b[39m'
},
columns: {
'0': { width: 1, useWordWrap: true },
'1': { width: 22, useWordWrap: true },
'2': { width: 6, useWordWrap: true },
'3': { width: 12, useWordWrap: true },
'4': { width: 9, useWordWrap: true },
'5': { width: 9, useWordWrap: true }
},
drawHorizontalLine: [Function: drawHorizontalLine]
}
errors [
{
dataPath: '/columns/0',
message: 'should NOT have additional properties',
params: { additionalProperty: 'useWordWrap' },
schemaPath: '#/additionalProperties'
},
{
dataPath: '/columns/1',
message: 'should NOT have additional properties',
params: { additionalProperty: 'useWordWrap' },
schemaPath: '#/additionalProperties'
},
{
dataPath: '/columns/2',
message: 'should NOT have additional properties',
params: { additionalProperty: 'useWordWrap' },
schemaPath: '#/additionalProperties'
},
{
dataPath: '/columns/3',
message: 'should NOT have additional properties',
params: { additionalProperty: 'useWordWrap' },
schemaPath: '#/additionalProperties'
},
{
dataPath: '/columns/4',
message: 'should NOT have additional properties',
params: { additionalProperty: 'useWordWrap' },
schemaPath: '#/additionalProperties'
},
{
dataPath: '/columns/5',
message: 'should NOT have additional properties',
params: { additionalProperty: 'useWordWrap' },
schemaPath: '#/additionalProperties'
}
]
Invalid config.
Environment
- **CDK CLI Version: ** 1.82.0 (build c445b89)
- **Framework Version: ** 1.82.0
- Node.js Version: 12.20.0
- OS : macOS Big Sur
- Language (Version): TypeScript 4.1.3
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
AWS CLI: Error parsing parameter '--config-rule': Invalid JSON
The answer is right there, this is how i read the error message... Invalid JSON: Invalid control character at: line 3 column 87...
Read more >S3 bucket policies and ACLs should not be configured for ...
It is a security risk for a bucket to have an ACL or bucket policy that is configured for public read access, even...
Read more >Tutorial: Configuring a static website on Amazon S3
Walk through a code example of how to configure a bucket for website hosting using the Amazon S3 website endpoint.
Read more >How can I grant public read access to some objects ... - YouTube
We appreciate your feedback: https://amazonintna.qualtrics.com/jfe/form/SV_a5xC6bFzTcMv35sFor more details see the Knowledge Center article ...
Read more >Amazon S3 — Cyberduck Help documentation
aws\credentials on Windows using third-party tools. Download the S3 (Credentials from AWS Command Line Interface) profile for preconfigured settings. You must ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also had this problem with Homebrew-installed aws-cdk. Installing the npm version worked.
⚠️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.