Comments (7)
Thank you for reporting this issue so clearly and thanks for the cited workaround! I'm adding the appropriate labels. This is indeed common theme of issues, our team will need to tackle as time permits. Adding to a tracking issue.
from pulumi-aws.
I've created a repository here with a minimal configuration to reproduce this issue: https://github.com/tombee/pulumi-aws-issue-3986
Interestingly I found that it's only preventing preview and up actions when I add:
opts=pulumi.ResourceOptions(ignore_changes=["routes"]
It also about failed validation during pulumi import
of the route table:
Diagnostics:
aws:ec2:RouteTable (pulumi-import-issue-3986-rtb):
warning: One or more imported inputs failed to validate. This is almost certainly a bug in the `aws` provider. The import will still proceed, but you will need to edit the generated code after copying it into your program.
warning: aws:ec2/routeTable:RouteTable resource 'pulumi-import-issue-3986-rtb' has a problem: "" is not a valid CIDR block: invalid CIDR address: . Examine values at 'pulumi-import-issue-3986-rtb.routes'.
from pulumi-aws.
@tombee the issue should now be fixed on the latest version. I tested with your repro and it was successful.
from pulumi-aws.
The above shown data in routes
is clearly invalid, because for an optional
Terraform property the property shouldn't show up at all. That's why removing the empty string ""
will solve the shown error by pulumi
.
CC: @t0yv0
from pulumi-aws.
Updated the main issue comment, since I don't believe this is a blocking issue if the trigger is only when ignore_changes=["routes"]
is added, since the RouteTable resource has a built-in method of ignoring routes by simply omitting the input.
I don't know enough about how import works with pulumi-aws and the terraform bridge to know if this could be a wider issue though where the import CLI is producing a state that won't pass validation.
from pulumi-aws.
I just tried to reproduce this using the latest https://github.com/pulumi/pulumi-terraform-bridge/tree/master and it looks like it has been fixed.
After the next bridge release we can pull in the new version and test it out to confirm.
from pulumi-aws.
Tracking pulumi/pulumi-terraform-bridge#2314 in the bridge.
from pulumi-aws.
Related Issues (20)
- pulumi doesn't allow data larger than 16K for aws_imagebuilder_component HOT 1
- [import] AWS autoscaling group import and subsequent `up` tries to fix defaults to actual default values HOT 3
- Upgrade terraform-provider-aws to v5.67.0 HOT 1
- Support for IAM Role Chaining
- Feature Request: AddClientIDToOpenIDConnectProvider HOT 4
- Workflow failure: cron HOT 1
- Reduce upstream/go.mod patch churn
- Certificate logical name change may not always re-attach to Listener HOT 4
- ListenerCertificate logical name change may not always re-attach to Listener HOT 1
- S3 BucketLifecycleConfigurationV2RuleArgs Expiration is not deleted when set to nil HOT 2
- Consider building tooling to simplify migrating from Bucket to BucketV2 HOT 1
- BucketV2 to Bucket aliasing is no longer working
- Add types for EKS addon configuration
- Support onObjectCreated and other overlays on BucketV2
- Upgrade terraform-provider-aws to v5.68.0
- ecs.Service deployment marked successfully updated in pulumi when ECS deployment failed and has been rolled back HOT 2
- Cognito UserPool constructor incorrectly attaches lambdaConfig lambdas HOT 1
- Unexepected diff with `lightsail.InstancePublicPorts` HOT 1
- Workflow failure: master HOT 1
- Workflow failure: master
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulumi-aws.