nice-father-44210
11/02/2021, 6:09 PMpulumi import
for a aws:ec2/routeTableAssociation
Any advice? Log below:
❯ pulumi import aws:ec2/routeTableAssociation:RouteTableAssociation private-us-west-2a subnet-xxx/rtb-xxx -d
Previewing import (xxx/xxx)
View Live: <https://app.pulumi.com/xxx>
Type Name Plan Info
pulumi:pulumi:Stack my-project 1 error; 10 debugs
= └─ aws:ec2:RouteTableAssociation private-us-west-2a import 3 errors
Diagnostics:
pulumi:pulumi:Stack (my-project):
debug: Attempting to use session-derived credentials
debug: Successfully derived credentials from session
debug: AWS Auth provider used: "SSOProvider"
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Attempting to use session-derived credentials
debug: Successfully derived credentials from session
debug: AWS Auth provider used: "SSOProvider"
debug: Trying to get account information via iam:GetUser
debug: Trying to get account information via sts:GetCallerIdentity
debug: Importing route table association, target: subnet-xxx, route table: rtb-xxx
error: preview failed
aws:ec2:RouteTableAssociation (private-us-west-2a):
error: aws:ec2/routeTableAssociation:RouteTableAssociation resource 'private-us-west-2a' has a problem: Invalid combination of arguments: "gateway_id": one of `gateway_id,subnet_id` must be specified. Examine values at 'RouteTableAssociation.GatewayId'.
error: aws:ec2/routeTableAssociation:RouteTableAssociation resource 'private-us-west-2a' has a problem: Invalid combination of arguments: "subnet_id": one of `gateway_id,subnet_id` must be specified. Examine values at 'RouteTableAssociation.SubnetId'.
error: Preview failed: one or more inputs failed to validate
billowy-army-68599
11/02/2021, 6:11 PMnice-father-44210
11/02/2021, 6:12 PM