-
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
Error with live-streaming-on-aws.template #203
Comments
I will take a look. |
Thanks! :) |
I have found the error, when converting from Cloudformation to Terraform it gets the resource type wrong:
But when I went to look what terraform resource it should be converted to, I couldn't find one. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/servicecatalog_budget_resource_association Can you find the Terraform equivalent resource? I don't think there is one @tatarevick. |
This is also a duplicate of #113 |
@tatarevick I don't think so, they don't seem to take the same arguments. Look at the options for the cloudformation resource compared to the terraform one. |
Hi! There!,
I got my template from this site and just change the extension to yaml.
https://docs.aws.amazon.com/solutions/latest/live-streaming-on-aws/aws-cloudformation-template.html
Download:
https://s3.amazonaws.com/solutions-reference/live-streaming-on-aws/latest/live-streaming-on-aws.template
Thanks! :)
DEPLOY
ERROR
debug: CDKMetadataAvailable = anytrue([anytrue([data.aws_region.current.name == "af-south-1", data.aws_region.current.name == "ap-east-1", data.aws_region.current.name == "ap-northeast-1", data.aws_region.current.name == "ap-northeast-2", data.aws_region.current.name == "ap-south-1", data.aws_region.current.name == "ap-southeast-1", data.aws_region.current.name == "ap-southeast-2", data.aws_region.current.name == "ca-central-1", data.aws_region.current.name == "cn-north-1", data.aws_region.current.name == "cn-northwest-1"]), anytrue([data.aws_region.current.name == "eu-central-1", data.aws_region.current.name == "eu-north-1", data.aws_region.current.name == "eu-south-1", data.aws_region.current.name == "eu-west-1", data.aws_region.current.name == "eu-west-2", data.aws_region.current.name == "eu-west-3", data.aws_region.current.name == "me-south-1", data.aws_region.current.name == "sa-east-1", data.aws_region.current.name == "us-east-1", data.aws_region.current.name == "us-east-2"]), anytrue([data.aws_region.current.name == "us-west-1", data.aws_region.current.name == "us-west-2"])])
debug: }
debug: Converting 36 Resources
debug: Converting Cloudformation resource MediaLiveRole1149D189 to Terraform.
debug: Converted name to media_live_role1149_d189
debug: Converted CF type AWS::IAM::Role to search term iam role.
debug: Searcing for iam role in terraform docs...
debug: Best match was iam role at /tmp/terraform_src/website/docs/r/iam_role.html.markdown with score of 100.
debug: Found documentation file /tmp/terraform_src/website/docs/r/iam_role.html.markdown
debug: Converted type from AWS::IAM::Role to aws_iam_role
debug: Unable to find section Attributes Reference in /tmp/terraform_src/website/docs/r/iam_role.html.markdown
Traceback (most recent call last):
File "/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.11/site-packages/cf2tf/terraform/doc_file.py", line 19, in parse_attributes
attributes = parse_section("Attributes Reference", file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.11/site-packages/cf2tf/terraform/doc_file.py", line 37, in parse_section
section_location = find_section(name, file)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.11/site-packages/cf2tf/terraform/doc_file.py", line 117, in find_section
raise Exception()
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/linuxbrew/.linuxbrew/bin/cf2tf", line 8, in
sys.exit(cli())
^^^^^
File "/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
The text was updated successfully, but these errors were encountered: