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

docs - awscc_ec2_transit_gateway_route_table_propagation #1788

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 45 additions & 2 deletions docs/resources/ec2_transit_gateway_route_table_propagation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_ec2_transit_gateway_route_table_propagation Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Expand All @@ -10,6 +9,50 @@ description: |-

AWS::EC2::TransitGatewayRouteTablePropagation Type

## Example Usage
Enables the specified attachment to propagate routes to the specified propagation route table.
```terraform
resource "awscc_ec2_transit_gateway_route_table_propagation" "example" {
transit_gateway_attachment_id = awscc_ec2_transit_gateway_attachment.example.id
transit_gateway_route_table_id = awscc_ec2_transit_gateway_route_table.example.id
}

#Create a transit gateway attachment
resource "awscc_ec2_transit_gateway_attachment" "example" {
subnet_ids = [awscc_ec2_subnet.example.id]
transit_gateway_id = awscc_ec2_transit_gateway.example.id
vpc_id = awscc_ec2_vpc.example.id
}

# Create an VPC
resource "awscc_ec2_vpc" "example" {
cidr_block = "10.0.0.0/16"
enable_dns_support = true
enable_dns_hostnames = true
}

# Create a public subnet
resource "awscc_ec2_subnet" "example" {
vpc_id = awscc_ec2_vpc.example.id
cidr_block = "10.0.0.0/24"
}

# Create a transit gateway
resource "awscc_ec2_transit_gateway" "example" {
amazon_side_asn = 64512
auto_accept_shared_attachments = "enable"
default_route_table_association = "disable"
default_route_table_propagation = "disable"
dns_support = "enable"
vpn_ecmp_support = "enable"
}

# Create a transit gateway route table
resource "awscc_ec2_transit_gateway_route_table" "example" {
transit_gateway_id = awscc_ec2_transit_gateway.example.id
}
```



<!-- schema generated by tfplugindocs -->
Expand All @@ -30,4 +73,4 @@ Import is supported using the following syntax:

```shell
$ terraform import awscc_ec2_transit_gateway_route_table_propagation.example <resource ID>
```
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
resource "awscc_ec2_transit_gateway_route_table_propagation" "example" {
transit_gateway_attachment_id = awscc_ec2_transit_gateway_attachment.example.id
transit_gateway_route_table_id = awscc_ec2_transit_gateway_route_table.example.id
}

#Create a transit gateway attachment
resource "awscc_ec2_transit_gateway_attachment" "example" {
subnet_ids = [awscc_ec2_subnet.example.id]
transit_gateway_id = awscc_ec2_transit_gateway.example.id
vpc_id = awscc_ec2_vpc.example.id
}

# Create an VPC
resource "awscc_ec2_vpc" "example" {
cidr_block = "10.0.0.0/16"
enable_dns_support = true
enable_dns_hostnames = true
}

# Create a public subnet
resource "awscc_ec2_subnet" "example" {
vpc_id = awscc_ec2_vpc.example.id
cidr_block = "10.0.0.0/24"
}

# Create a transit gateway
resource "awscc_ec2_transit_gateway" "example" {
amazon_side_asn = 64512
auto_accept_shared_attachments = "enable"
default_route_table_association = "disable"
default_route_table_propagation = "disable"
dns_support = "enable"
vpn_ecmp_support = "enable"
}

# Create a transit gateway route table
resource "awscc_ec2_transit_gateway_route_table" "example" {
transit_gateway_id = awscc_ec2_transit_gateway.example.id
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: ""
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage
Enables the specified attachment to propagate routes to the specified propagation route table.
{{ tffile (printf "examples/resources/%s/ec2_transit_gateway_route_table_propagation.tf" .Name)}}



{{ .SchemaMarkdown | trimspace }}
{{- if .HasImport }}

## Import

Import is supported using the following syntax:

{{ codefile "shell" .ImportFile }}

{{- end }}
Loading