-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add overrides for aws_sns_topic and other problematic conversions #112
Comments
@jignesh1995 That is exactly what is happening. The converter tries to convery the Cloudformation property "Subscription" into a Terraform attribute for This is something could be fixed. I added an override system to the tool in a previous release. This override functionality allows you to inspect the Cloudformation properties ahead of time and then manually do things. The logic for performing the overrides is here: Lines 610 to 625 in a0ad1ea
The actual overrides are stored here: cf2tf/src/cf2tf/conversion/overrides.py Lines 1 to 52 in a0ad1ea
I will take a look at fixing the topic subscription with an override soon. Thanks for opening the issue with a clear example. |
This is an excellent python app for translating Cloudformation Stack to Terraform scripts
Some modules could however use an improvement while translating to terraform scripts:
The generated script has terraform blocks such as the following:
When in ideal scenario, there should have been 2 resources (1 for SNS Topic, 1 for SNS Subscription):
I think the primary reason for this is that my Cloudformation script is creating the resources within the same module(CF block
Type: "AWS::SNS::Topic"
), however terraform based on its API documentation requires multiple modules to replicate the same resource structure.PS: Props to the idea of not failing the conversion for such scenarios and instead adding a comment block at the appropriate locations
//CF Property....
so that developers can resolve them manually.The text was updated successfully, but these errors were encountered: