Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sqs): imported queue ignores environment from arn (#27906)
This PR fixes the bug that `fromQueueArn` does not extract region and account from the arn. - Behavior until now ```ts const stack = new Stack(); // <- region: us-east-1, account: 123456789012 const imported = sqs.Queue.fromQueueArn(stack, 'Imported', 'arn:aws:sns:us-west-2:999999999999:queue'); // imported.env.region : us-east-1("Ref": "AWS::Region"). But it should be us-west-2. // imported.env.account : 123456789012("Ref": "AWS::AccountId"). But it should be 999999999999. ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information