diff --git a/modules/aws/EKS-Node-Group/eks_node_group.tf b/modules/aws/EKS-Node-Group/eks_node_group.tf index afff4af..1000212 100644 --- a/modules/aws/EKS-Node-Group/eks_node_group.tf +++ b/modules/aws/EKS-Node-Group/eks_node_group.tf @@ -59,11 +59,6 @@ resource "aws_eks_node_group" "eks_node_group" { tags = local.ng_tags - lifecycle { - ignore_changes = [ - - ] - } } resource "aws_launch_template" "eks_launch_template" { diff --git a/modules/aws/Transit-Gateway-Attachment-Acceptor/transit-gateway-attachment-acceptor.tf b/modules/aws/Transit-Gateway-Attachment-Acceptor/transit-gateway-attachment-acceptor.tf new file mode 100644 index 0000000..c5145d9 --- /dev/null +++ b/modules/aws/Transit-Gateway-Attachment-Acceptor/transit-gateway-attachment-acceptor.tf @@ -0,0 +1,16 @@ +# ------------------------------------------------------------------------------------- +# +# Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com). All Rights Reserved. +# +# This software is the property of WSO2 LLC. and its suppliers, if any. +# Dissemination of any information or reproduction of any material contained +# herein in any form is strictly forbidden, unless permitted by WSO2 expressly. +# You may not alter or remove any copyright or other notice from copies of this content. +# +# -------------------------------------------------------------------------------------- + +resource "aws_ec2_transit_gateway_vpc_attachment_accepter" "ec2_transit_gateway_vpc_attachment_accepter" { + transit_gateway_attachment_id = var.attachment_id + + tags = var.tags +} diff --git a/modules/aws/Transit-Gateway-Attachment-Acceptor/variables.tf b/modules/aws/Transit-Gateway-Attachment-Acceptor/variables.tf new file mode 100644 index 0000000..2f662df --- /dev/null +++ b/modules/aws/Transit-Gateway-Attachment-Acceptor/variables.tf @@ -0,0 +1,19 @@ +# ------------------------------------------------------------------------------------- +# +# Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com). All Rights Reserved. +# +# This software is the property of WSO2 LLC. and its suppliers, if any. +# Dissemination of any information or reproduction of any material contained +# herein in any form is strictly forbidden, unless permitted by WSO2 expressly. +# You may not alter or remove any copyright or other notice from copies of this content. +# +# -------------------------------------------------------------------------------------- + +variable "attachment_id" { + description = "The ID of the attachment." + type = string +} +variable "tags" { + description = "Tags to be added with all resources" + type = map(string) +} diff --git a/modules/aws/Transit-Gateway-Attachment-Acceptor/versions.tf b/modules/aws/Transit-Gateway-Attachment-Acceptor/versions.tf new file mode 100644 index 0000000..8657578 --- /dev/null +++ b/modules/aws/Transit-Gateway-Attachment-Acceptor/versions.tf @@ -0,0 +1,20 @@ +# ------------------------------------------------------------------------------------- +# +# Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). All Rights Reserved. +# +# This software is the property of WSO2 LLC. and its suppliers, if any. +# Dissemination of any information or reproduction of any material contained +# herein in any form is strictly forbidden, unless permitted by WSO2 expressly. +# You may not alter or remove any copyright or other notice from copies of this content. +# +# -------------------------------------------------------------------------------------- + +terraform { + required_version = ">= 1.3.8" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.0" + } + } +} diff --git a/modules/aws/Transit-Gateway/outputs.tf b/modules/aws/Transit-Gateway/outputs.tf index 636640f..fc38d32 100644 --- a/modules/aws/Transit-Gateway/outputs.tf +++ b/modules/aws/Transit-Gateway/outputs.tf @@ -19,5 +19,5 @@ output "propagation_default_route_table_id" { value = aws_ec2_transit_gateway.ec2_transit_gateway.propagation_default_route_table_id } output "transit_gateway_arn" { - value = aws_ec2_transit_gateway.ec2_transit_gateway.arn + value = aws_ec2_transit_gateway.ec2_transit_gateway.arn }