busy-lion-51883
03/02/2022, 7:18 PMawsx.ec2.Vpc.fromExistingIds()
method:
const vpc = awsx.ec2.Vpc.fromExistingIds("vpcFromId", {
vpcId: configData.vpcId,
},{provider: provider})
When I run this code against one aws provider, it executes as expected. Against another aws provider, connected to a different account profile, I get the following error:
error: Error: invocation of aws:ec2/getVpc:getVpc returned an error: invoking aws:ec2/getVpc:getVpc: 1 error occurred:
* no matching EC2 VPC found
This is very strange because I can verify that the vpc does exist for this provider (both from the aws console and also from the aws cli)
What would cause this behavior?great-queen-39697
03/02/2022, 8:01 PMbusy-lion-51883
03/02/2022, 9:01 PMgreat-queen-39697
03/02/2022, 9:05 PMbusy-lion-51883
03/02/2022, 9:24 PMgreat-queen-39697
03/02/2022, 9:29 PMbusy-lion-51883
03/02/2022, 9:29 PMgreat-queen-39697
03/02/2022, 9:29 PMbusy-lion-51883
03/02/2022, 9:35 PM