question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(cli): "Invalid config." when doing tutorial and adding `publicReadAccess: true`

See original GitHub issue

I am trying to do step 2 of the tutorial.

Reproduction Steps

  1. Add publicReadAccess: true to CDK S3 config
  2. Run cdk diff
  3. 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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
gamerdonkeycommented, Jan 5, 2021

I also had this problem with Homebrew-installed aws-cdk. Installing the npm version worked.

0reactions
github-actions[bot]commented, Feb 8, 2021

⚠️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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found