Describe the feature
Currently, instanceRole can only be set from the constructor.
If it is possible to retrieve it even after initialization like obtainExecutionRole in TaskDefinition of ECS, it would be useful to be able to grant privileges with the grant method.
Use Case
Use as follows:
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.obtainInstanceRole());
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.85.0
Environment details (OS name and version, etc.)
N/A
Describe the feature
Currently,
instanceRolecan only be set from the constructor.If it is possible to retrieve it even after initialization like
obtainExecutionRoleinTaskDefinitionof ECS, it would be useful to be able to grant privileges with thegrantmethod.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