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

test: example of Terramate Sharing Outputs. #203

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

i4ki
Copy link
Contributor

@i4ki i4ki commented Aug 2, 2024

No description provided.

@i4ki i4ki force-pushed the i4k-sharing-outputs branch from 5d49266 to bbab19f Compare August 2, 2024 13:57
Copy link

terramate-cloud bot commented Aug 2, 2024

Terramate Cloud Preview of commit 1499c57

Changed Resources

View Details on Terramate Cloud for Preview 7963

Action Resource
ADD module.vpc.aws_default_network_acl.this[0]
ADD module.vpc.aws_default_route_table.default[0]
ADD module.vpc.aws_default_security_group.this[0]
ADD module.vpc.aws_internet_gateway.this[0]
ADD module.vpc.aws_route.public_internet_gateway[0]
ADD module.vpc.aws_route_table.private[0]
ADD module.vpc.aws_route_table.private[1]
ADD module.vpc.aws_route_table.private[2]
ADD module.vpc.aws_route_table.public[0]
ADD module.vpc.aws_route_table_association.private[0]
ADD module.vpc.aws_route_table_association.private[1]
ADD module.vpc.aws_route_table_association.private[2]
ADD module.vpc.aws_route_table_association.public[0]
ADD module.vpc.aws_route_table_association.public[1]
ADD module.vpc.aws_route_table_association.public[2]
ADD module.vpc.aws_subnet.private[0]
ADD module.vpc.aws_subnet.private[1]
ADD module.vpc.aws_subnet.private[2]
ADD module.vpc.aws_subnet.public[0]
ADD module.vpc.aws_subnet.public[1]
ADD module.vpc.aws_subnet.public[2]
ADD module.vpc.aws_vpc.this[0]
ADD local_file.vpc_id

Changed Stacks

⚠️ 2 stacks with changing resources

/stacks/terraform/use-vpc-output-example
/stacks/terraform/vpc

@i4ki i4ki force-pushed the i4k-sharing-outputs branch 4 times, most recently from 57480fe to b24191c Compare August 2, 2024 14:19
@@ -0,0 +1,3 @@
output "vpc_id" {
value = module.vpc.vpc_id
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I am not too familiar with Terramate yet, I am just wondering. Which one https://github.com/terramate-io/terramate-quickstart-aws/pull/203/files#diff-dc0f18a94f4273afd42721dc7a41896b318984b7751967b6cd4d579836adbce9R3 is referring to. Is it stacks/terraform/vpc/outputs.tm or this output here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @poberherr,

This is a WIP feature, probably landing on the upcoming v0.10.1 release. It is still undocumented and some details can change before the release.

But about your question, yes, this file is generated from output and input blocks defined in a .tm file, in this case it is stacks/terraform/vpc/outputs.tm. The sharing_backend.filename attribute configures the generated file name.

@i4ki i4ki force-pushed the i4k-sharing-outputs branch 3 times, most recently from 67c2acd to c4cd22b Compare August 7, 2024 11:34
Signed-off-by: i4k <t.nateldemoura@gmail.com>
@i4ki i4ki force-pushed the i4k-sharing-outputs branch from c4cd22b to 1499c57 Compare August 7, 2024 11:49
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

Successfully merging this pull request may close these issues.

2 participants