You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ecs): fromServiceArnWithCluster not accepting value from SSM Parameter string (#30902)
### Issue # (if applicable)
Closes#30798.
### Reason for this change
`fromServiceArnWithCluster()` function can't handle token value correctly.
### Description of changes
Replace
```
const resourceName = arn.resourceName;
```
With
```
Arn.extractResourceName()
```
because the function above has the ability to handle token values.
### Description of how you validated changes
- Updated the unit test
- Manually verified the ECS cluster resource was used in the code pipeline when using the SSM parameter.
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
0 commit comments