aws / aws/apprunner-roadmap

Support a describeConnection API.

Open
#171 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
301
Forks
15
PR merge metrics
No merged PRs in 30d

Description

**Community Note**
* Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do * not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
Want you to provide describeConnection API, like a describeService API.

In my case, I'm controlling App Runner Connection by custom resource in CDK.
When I update some CFn's resources, Need to implement onUpdate behaviour in custom resource.

An example below.

```ts
new AwsCustomResource(this, 'GitHubConnection', {
onCreate: {
service: 'AppRunner',
action: 'createConnection',
parameters: {
ConnectionName: 'my-connection',
ProviderType: 'GITHUB'
},
physicalResourceId: cr.PhysicalResourceId.fromResponse('Connection.ConnectionArn')
},
onUpdate: {
service: 'AppRunner',
action: 'describeConnection',
parameters: {
ConnectionName: 'my-connection', // Connection ARN?
},
physicalResourceId: cr.PhysicalResourceId.fromResponse('Connection.ConnectionArn')
},
onDelete: {
service: 'AppRunner',
action: 'deleteConnection',
parameters: {
ConnectionArn: new cr.PhysicalResourceIdReference()
},
},
policy: cr.AwsCustomResourcePolicy.fromSdkCalls({
resources: cr.AwsCustomResourcePolicy.ANY_RESOURCE
})
})

const connectionArn = connection.getResponseField('Connection.ConnectionArn')
```

**Describe alternatives you've considered**
I've tryed to use ListConnections and describeService API.
However I don't know how to use it in custom resource.

I think can't use these apis. Because these response does not comatiple to createConnection response.
These responses body structure is need to same.
It means, if not specified key does not exists, The getResponseField method throws an error.

That why I submitted a feature request.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.