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

AWS with --cli-input-json shows invalid #761

Open
owenmather opened this issue Sep 24, 2024 · 0 comments
Open

AWS with --cli-input-json shows invalid #761

owenmather opened this issue Sep 24, 2024 · 0 comments

Comments

@owenmather
Copy link

owenmather commented Sep 24, 2024

The extra comma in the generated --dry-run 07-block-public-access-to-oidc-bucket.json file prevents aws cli from processing using --cli-input-json

ccoctl aws create-identity-provider --name testcluster --public-key-file /home/ec2-user/sts/serviceaccount-signer.public --region eu-west-1 --dry-run --create-private-s3-bucket

aws s3api put-public-access-block --cli-input-json file://./07-block-public-access-to-oidc-bucket.json

Error parsing parameter 'cli-input-json': Invalid JSON received.

cat 07-block-public-access-to-oidc-bucket.json
{
        "Bucket": "testcluster-oidc",
        "PublicAccessBlockConfiguration": {
        "BlockPublicAcls": true,
        "IgnorePublicAcls": true,
        "BlockPublicPolicy": true,
        "RestrictPublicBuckets": true
    }, #<-- invalid JSON 
}

cat 07-block-public-access-to-oidc-bucket.json  | jq
jq: parse error: Expected another key-value pair at line 9, column 1

Works as expected with this comma removed.

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

1 participant