https://pulumi.com logo
#aws
Title
# aws
n

nice-father-44210

11/02/2021, 6:09 PM
Having trouble running
pulumi import
for a
aws:ec2/routeTableAssociation
Any advice? Log below:
Copy code
❯ 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
b

billowy-army-68599

11/02/2021, 6:11 PM
more than likely a bug, please file an issue
n

nice-father-44210

11/02/2021, 6:12 PM