Skip to content

Commit

Permalink
Github checks fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
drewtul committed Sep 27, 2024
1 parent d9e1a8a commit f171c38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"errors"
"time"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/ec2"
awstypes "github.com/aws/aws-sdk-go-v2/service/ec2/types"
"github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
Expand Down Expand Up @@ -52,7 +51,7 @@ func (r *resourceTransitgatewayDefaultRouteTableAssociation) Metadata(_ context.
func (r *resourceTransitgatewayDefaultRouteTableAssociation) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"id": framework.IDAttribute(),
names.AttrID: framework.IDAttribute(),
"original_route_table_id": schema.StringAttribute{
Computed: true,
},
Expand All @@ -67,7 +66,7 @@ func (r *resourceTransitgatewayDefaultRouteTableAssociation) Schema(ctx context.
},
},
Blocks: map[string]schema.Block{
"timeouts": timeouts.Block(ctx, timeouts.Opts{
names.AttrTimeouts: timeouts.Block(ctx, timeouts.Opts{
Create: true,
Update: true,
Delete: true,
Expand Down Expand Up @@ -174,9 +173,9 @@ func (r *resourceTransitgatewayDefaultRouteTableAssociation) Update(ctx context.

if !plan.RouteTableId.Equal(state.RouteTableId) {
in := &ec2.ModifyTransitGatewayInput{
TransitGatewayId: aws.String(state.ID.ValueString()),
TransitGatewayId: state.ID.ValueStringPointer(),
Options: &awstypes.ModifyTransitGatewayOptions{
AssociationDefaultRouteTableId: flex.StringFromFramework(ctx, plan.RouteTableId),
AssociationDefaultRouteTableId: plan.RouteTableId.ValueStringPointer(),
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Terraform resource for managing an AWS EC2 (Elastic Compute Cloud) Transit Gatew

```terraform
resource "aws_ec2_transit_gateway_default_route_table_association" "example" {
transit_gateway_id = aws_ec2_transit_gateway.example.id
transit_gateway_id = aws_ec2_transit_gateway.example.id
transit_gateway_route_table_id = aws_ec2_transit_gateway_route_table.example.id
}
```
Expand Down

0 comments on commit f171c38

Please sign in to comment.