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 · 1 comment
Open

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

owenmather opened this issue Sep 24, 2024 · 1 comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@owenmather
Copy link
Contributor

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.

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

2 participants