Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude is not working #98

Open
aartihimanshu opened this issue Feb 10, 2025 · 1 comment
Open

Exclude is not working #98

aartihimanshu opened this issue Feb 10, 2025 · 1 comment

Comments

@aartihimanshu
Copy link

While generating code only for aws_instance its still trying to get all linked resources - (when the instance is created in a shared subnet/vpc , its still trying to get shared subnet details which is defined in another AWS account)
Instead, reference these subnet/resources using Terraform data sources and pass the necessary ids/names/values with variables.

e.g. ./aws2tf.py -t aws_instance -i instance_id

@awsandy
Copy link
Contributor

awsandy commented Feb 10, 2025

For now this should just populate the remote resource with their hardcoded id "subnet-xxxxxxxxxx" rather than a resource

It's a good idea to use a data source instead - I'll look into doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants