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

docs(ssm): doc for grantRead in IParameter is missing GetParameters #27867

Merged
merged 4 commits into from
Nov 8, 2023

Conversation

go-to-k
Copy link
Contributor

@go-to-k go-to-k commented Nov 7, 2023

The doc for grantRead in IParameter is missing GetParameters.

The grantRead actually grants 'ssm:GetParameters'.

    return iam.Grant.addToPrincipal({
      grantee,
      actions: [
        'ssm:DescribeParameters',
        'ssm:GetParameters',
        'ssm:GetParameter',
        'ssm:GetParameterHistory',
      ],

https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-ssm/lib/parameter.ts#L181-L186


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team November 7, 2023 05:25
@github-actions github-actions bot added star-contributor [Pilot] contributed between 25-49 PRs to the CDK p2 labels Nov 7, 2023
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Nov 7, 2023
Copy link
Contributor

@lpizzinidev lpizzinidev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch 👍

@aws-cdk-automation aws-cdk-automation added pr/needs-maintainer-review This PR needs a review from a Core Team Member and removed pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. labels Nov 7, 2023
scanlonp
scanlonp previously approved these changes Nov 7, 2023
Copy link
Contributor

mergify bot commented Nov 7, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Nov 7, 2023
Copy link
Contributor

mergify bot commented Nov 7, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@go-to-k
Copy link
Contributor Author

go-to-k commented Nov 8, 2023

@scanlonp Thanks to approve, but the merge failed... Do you handle this again please?

@mergify mergify bot dismissed scanlonp’s stale review November 8, 2023 00:56

Pull request has been modified.

scanlonp
scanlonp previously approved these changes Nov 8, 2023
@go-to-k
Copy link
Contributor Author

go-to-k commented Nov 8, 2023

@scanlonp

Oh... It appears that CodeBuild has failed this time. Do you know how to deal with this? Is it possible to have it run again?

aws-cdk: FAIL test/commands/migrate.test.ts (37.451 s)
aws-cdk:   笳� Migrate Function Tests 窶コ generateCdkApp generates the expected cdk app when called for java
aws-cdk:     thrown: "Exceeded timeout of 30000 ms for a test.
aws-cdk:     Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
aws-cdk:     �[0m �[90m 218 |�[39m�[0m
aws-cdk:     �[0m �[90m 219 |�[39m �[36mfunction�[39m cliTest(name�[33m:�[39m string�[33m,�[39m handler�[33m:�[39m (dir�[33m:�[39m string) �[33m=>�[39m �[36mvoid�[39m �[33m|�[39m �[33mPromise�[39m�[33m<�[39m�[33many�[39m�[33m>�[39m)�[33m:�[39m �[36mvoid�[39m {�[0m
aws-cdk:     �[0m�[31m�[1m>�[22m�[39m�[90m 220 |�[39m   test(name�[33m,�[39m () �[33m=>�[39m withTempDir(handler))�[33m;�[39m�[0m
aws-cdk:     �[0m �[90m     |�[39m   �[31m�[1m^�[22m�[39m�[0m
aws-cdk:     �[0m �[90m 221 |�[39m }�[0m
aws-cdk:     �[0m �[90m 222 |�[39m�[0m
aws-cdk:     �[0m �[90m 223 |�[39m �[36masync�[39m �[36mfunction�[39m withTempDir(cb�[33m:�[39m (dir�[33m:�[39m string) �[33m=>�[39m �[36mvoid�[39m �[33m|�[39m �[33mPromise�[39m�[33m<�[39m�[33many�[39m�[33m>�[39m) {�[0m
aws-cdk:       at cliTest (test/commands/migrate.test.ts:220:3)
aws-cdk:       at test/commands/migrate.test.ts:149:3
aws-cdk:       at Object.<anonymous> (test/commands/migrate.test.ts:11:1)

@mergify mergify bot dismissed scanlonp’s stale review November 8, 2023 11:55

Pull request has been modified.

@scanlonp
Copy link
Contributor

scanlonp commented Nov 8, 2023

I would guess it is this change (#27870) that is now causing a java app creation test to fail. Unsure why it would pass the build there but fail here. Never mind, it was not that at all (Java =/= Go). Will check it out.
Probably a flaky test.

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Nov 8, 2023
@go-to-k
Copy link
Contributor Author

go-to-k commented Nov 8, 2023

@scanlonp

Oh! This time the Build succeeded!
Please check it.

Copy link
Contributor

mergify bot commented Nov 8, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Nov 8, 2023
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 5a0e7a6
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit c02471d into aws:main Nov 8, 2023
Copy link
Contributor

mergify bot commented Nov 8, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

mikewrighton pushed a commit that referenced this pull request Nov 13, 2023
…27867)

The doc for `grantRead` in `IParameter` is missing `GetParameters`.

The `grantRead` actually grants 'ssm:GetParameters'.

```ts
    return iam.Grant.addToPrincipal({
      grantee,
      actions: [
        'ssm:DescribeParameters',
        'ssm:GetParameters',
        'ssm:GetParameter',
        'ssm:GetParameterHistory',
      ],
```

https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-ssm/lib/parameter.ts#L181-L186

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 star-contributor [Pilot] contributed between 25-49 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants