-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
apprunner: Allow instanceRole
to be obtained from Service
instances.
#26089
Labels
@aws-cdk/aws-apprunner
Related to the apprunner package
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Comments
kmkhr
added
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
labels
Jun 22, 2023
github-actions
bot
added
the
@aws-cdk/aws-apprunner
Related to the apprunner package
label
Jun 22, 2023
Yeah maybe we can just expose the instanceRole to the surface and simply bucket.grantRead(service.instanceRole); |
pahud
added
p2
and removed
feature-request
A feature should be added or improved.
labels
Jun 22, 2023
pahud
added
feature-request
A feature should be added or improved.
effort/small
Small work item – less than a day of effort
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Jun 22, 2023
pahud
changed the title
(@aws-cdk/aws-apprunner): Allow
apprunner: Allow Jun 22, 2023
instanceRole
to be obtained from Service
instances.instanceRole
to be obtained from Service
instances.
lpizzinidev
added a commit
to lpizzinidev/aws-cdk
that referenced
this issue
Jun 28, 2023
lpizzinidev
added a commit
to lpizzinidev/aws-cdk
that referenced
this issue
Jun 30, 2023
lpizzinidev
added a commit
to lpizzinidev/aws-cdk
that referenced
this issue
Jul 15, 2023
lpizzinidev
added a commit
to lpizzinidev/aws-cdk
that referenced
this issue
Jul 21, 2023
mergify bot
pushed a commit
that referenced
this issue
Jul 24, 2023
Implementing `IGrantable` for cases when it's needed to grant permissions to a `Service` instance. For example: ``` declare const bucket: IBucket; const service = new apprunner.Service(this, 'Service', { source: apprunner.Source.fromEcrPublic({ imageConfiguration: { port: 8000 }, imageIdentifier: 'public.ecr.aws/aws-containers/hello-app-runner:latest', }), }); bucket.grantRead(service); ``` Closes #26089. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
This was referenced Jul 26, 2023
bmoffatt
pushed a commit
to bmoffatt/aws-cdk
that referenced
this issue
Jul 29, 2023
Implementing `IGrantable` for cases when it's needed to grant permissions to a `Service` instance. For example: ``` declare const bucket: IBucket; const service = new apprunner.Service(this, 'Service', { source: apprunner.Source.fromEcrPublic({ imageConfiguration: { port: 8000 }, imageIdentifier: 'public.ecr.aws/aws-containers/hello-app-runner:latest', }), }); bucket.grantRead(service); ``` Closes aws#26089. ---- *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
@aws-cdk/aws-apprunner
Related to the apprunner package
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Currently,
instanceRole
can only be set from the constructor.If it is possible to retrieve it even after initialization like
obtainExecutionRole
inTaskDefinition
of ECS, it would be useful to be able to grant privileges with thegrant
method.Use Case
Use as follows:
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.85.0
Environment details (OS name and version, etc.)
N/A
The text was updated successfully, but these errors were encountered: