--- title: "Attach Internet Gateway" slug: "attach-internet-gateway" tags: ["AWS Module"] updated: 2025-08-14T15:29:11Z published: 2025-08-14T15:29:11Z canonical: "documentation.decisions.com/attach-internet-gateway" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Attach Internet Gateway | Step Details | | --- | | **Introduced in Version** | 3.0.0 | | **Last Modified in Version** | 7.0.0 | | **Location** | Integration > Amazon AWS > EC2 | The **Attach Internet Gateway** step is used to assign an internet gateway to be used by a VPC. ### Prerequisites - This step requires the [Amazon AWS Module](https://documentation.decisions.com/docs/aws) to be [installed](https://documentation.decisions.com/docs/installing-modules-decisions) before it will be available in the toolbox, and an active [AWS account](https://signin.aws.amazon.com/signin?redirect_uri=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2Fhome%3FhashArgs%3D%2523%26isauthcode%3Dtrue%26nc2%3Dh_ct%26src%3Dheader-signin%26state%3DhashArgsFromTB_eu-north-1_c1412528899e4833&client_id=arn%3Aaws%3Asignin%3A%3A%3Aconsole%2Fcanvas&forceMobileApp=0&code_challenge=HQku5BPrRUboP5p1wGr4Ai_nBIQNSqsR2eHJNCBfxhQ&code_challenge_method=SHA-256). The [Amazon WebServices Settings](https://documentation.decisions.com/docs/setting-up-amazon-webservices-integration) must also be configured. - A [dependency](https://documentation.decisions.com/docs/project-dependencies) must be created after installing the module in order for the the steps to be properly used. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Internet Gateway Id | Id of the internet gateway to attach to a VPC. | String | | Region | The Amazon AWS region the instance is associated with. | AmazonAWSRegion | | Vpc Id | Id of the VPC to attach an internet gateway to. | String | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-08-07_09h45_56.png) --- ## Common Errors ### AWS Was Not Able to Validate the Provided Access Credentials. If the access credentials established in system settings are invalid, the step will cause an error. To correct this, ensure the Access Key Id and Secret Access Key are both correct and active. #### Exception Message: ```csharp DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Assign Elastic Ip To Instance Standard 1[AssignElasticIpToInstanceStandard] in flow [Step Flows]: Exception invoking method AssignElasticIpToInstanceStandard on class AmazonEC2Core ---> DecisionsFramework.LoggedException: Exception invoking method AssignElasticIpToInstanceStandard on class AmazonEC2Core ---> Amazon.EC2.AmazonEC2Exception: AWS was not able to validate the provided access credentials ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.ProcessHttpResponseMessage(HttpResponseMessage responseMessage) at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken) at Amazon.Runtime.Internal.HttpHandler`1.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext) at Amazon.EC2.Internal.AmazonEC2ResponseHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext) --- End of inner exception stack trace --- ``` ### Resource 'igw-xxxxxxxxxxxxxxxxx' is Already Attached to Network 'vpc-xxxxxxxxxxxxxxxxx.' If the specified internet gateway is already attached to a VPC, the step will cause an error. To correct this, create a new internet gateway or select an internet gateway that is not attached yet to attach to the specified VPC. #### Exception Message: ```csharp DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Attach Internet Gateway 1[AttachInternetGateway] in flow [Step Flows]: Exception invoking method AttachInternetGateway on class AmazonEC2Core ---> DecisionsFramework.LoggedException: Exception invoking method AttachInternetGateway on class AmazonEC2Core ---> Amazon.EC2.AmazonEC2Exception: resource igw-0f862f5deccf12c91 is already attached to network vpc-0c2c998dce9e6eb8c ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.ProcessHttpResponseMessage(HttpResponseMessage responseMessage) at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken) at Amazon.Runtime.Internal.HttpHandler`1.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext) at Amazon.EC2.Internal.AmazonEC2ResponseHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext) --- End of inner exception stack trace --- ``` --- Related Information Related Articles: [EC2](https://documentation.decisions.com/docs/aws-ec2-step-glossary) [AWS](https://documentation.decisions.com/docs/aws)