ecs: help with importing cross account cluster #26076
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
feature-request
A feature should be added or improved.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the feature
I am trying to call a Fargate task definition from a SFN in account A to a cluster in account B. This is done in our CDK package.
I am getting connections is not available for a Cluster imported using fromClusterArn(), please use fromClusterAttributes() instead when trying to reference a Fargate cluster defined in a separate account.
Using CDK I have:
This produces the error. The issue with using ClusterAttributes is it does not have a field for AccountId, and requires VPC field which also does not have a field for accountId.
Use Case
Cross account calls to ECSRunTask
Proposed Solution
Allow fromClusterArn to work for cross account requests, or provide another way to make cross account requests.
Other Information
No response
Acknowledgements
CDK version used
1
Environment details (OS name and version, etc.)
macOS 13.4 (22F66)
The text was updated successfully, but these errors were encountered: