Generated banner for Directconnect
Generated logo for Directconnect

Directconnect

AWSOfficialPublished by AWS

  • Skill
  • Tool integration
  • Cloud and DevOps
  • Apache-2.0
  • No issues found

From the author

Configures AWS Direct Connect: choosing a connection model (dedicated, hosted, or a link aggregation group) and completing the cross connect; creating private, public, and transit virtual interfaces and bringing up BGP; reaching many VPCs through a Direct Connect gateway including cross-account transit gateway associations; encrypting traffic with MACsec or a private IP Site-to-Site VPN; making the connection resilient and tuning failover; managing link aggregation groups; SiteLink; and migrating from a virtual private gateway to a transit gateway. Use when the user wants a private, consistent network link between a data center and AWS, or operates an existing Direct Connect setup and needs to extend, encrypt, or harden it. Routes to the right per-task procedure in references. Do NOT use for transit gateway route tables and attachments (transitgateway skill), Site-to-Site VPN without Direct Connect (sitetositevpn skill), or Route 53 DNS routing (route53 skill).
— the description by AWS

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides comprehensive, procedure-based guidance for establishing and maintaining AWS Direct Connect, which creates a private, consistent network connection between on-premises data centers and AWS. It acts as a central router for specific tasks, including selecting connection models, configuring virtual interfaces and BGP, managing Direct Connect gateways for multi-VPC connectivity, implementing encryption, and ensuring network resiliency. The skill emphasizes adherence to specific procedural references to avoid common configuration pitfalls and service disruptions.

What it does

  • Guides the selection of connection models like dedicated, hosted, or link aggregation groups.
  • Provides procedures for creating and configuring private, public, and transit virtual interfaces.
  • Manages the integration of Direct Connect gateways to connect multiple VPCs across accounts.
  • Assists in implementing traffic encryption via MACsec or private IP Site-to-Site VPN.
  • Outlines steps for building resilient connections and tuning failover performance.
  • Facilitates the migration from virtual private gateways to transit gateways.

When to use it

  • When establishing a new private network link between an on-premises facility and AWS.
  • When scaling an existing Direct Connect setup to reach multiple VPCs or accounts.
  • When implementing security measures like encryption for sensitive data in transit.
  • When optimizing or hardening an existing connection for resiliency and failover.
  • When migrating legacy virtual private gateway configurations to modern transit gateway architectures.

Advantages

  • Provides structured, task-specific procedures to prevent common configuration errors.
  • Ensures consistent application of security best practices, such as mandatory encryption for regulated data.
  • Clarifies complex architectural decisions like choosing between dedicated and hosted connections.
  • Reduces the risk of production traffic drops during complex migrations or updates.
  • Centralizes guidance for multi-account and multi-region network connectivity.

Usage examples

“I need to set up a new private connection between my data center and AWS. Where do I start?”
The agent will guide you through choosing the correct connection model (dedicated vs. hosted) and explain the process of obtaining an LOA-CFA to complete the physical cross-connect.
“How can I connect my on-premises network to multiple VPCs across different accounts?”
The agent will direct you to the Direct Connect gateway procedure, detailing the cross-account proposal and acceptance handshake and the necessary prefix configurations.
“We need to encrypt our data moving over Direct Connect. What are our options?”
The agent will compare MACsec and private IP Site-to-Site VPN options, helping you select the appropriate encryption method based on your specific security requirements.
“Our current setup is outgrowing the virtual private gateway. How do we move to a transit gateway?”
The agent will provide the specific, order-dependent migration steps required to transition to a transit gateway without causing network downtime.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/aws/directconnect/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip directconnect.zip -d .agents/skills

Documentation by AWS

AWS Direct Connect

Overview

Domain expertise for configuring AWS Direct Connect, the service that gives a customer a private, consistent network link between their own data center or colocation and AWS instead of routing over the public internet. Covers choosing a connection model and completing the cross connect, creating virtual interfaces and bringing up Border Gateway Protocol (BGP), reaching many VPCs through a Direct Connect gateway, encrypting traffic in transit, making the connection resilient, managing link aggregation groups, SiteLink, and migrating from a virtual private gateway to a transit gateway.

This skill is a router. Each customer task maps to a procedure file under references/. Read the matching reference in full before acting, then follow its constraints and steps. The reference files are self-contained: each carries its own decision tables, constraints, procedure, and troubleshooting.

Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging, observability). Fall back to the AWS CLI otherwise. The Direct Connect console is regional, so pass the customer's working --region on aws directconnect commands; a Direct Connect gateway is a global resource but is reached through a regional console view.

Which Direct Connect task do you need?

GoalReference
Choose dedicated vs hosted vs a link aggregation group, then complete the cross connectchoosing a Direct Connect connection type
Create a private, public, or transit virtual interface and bring up BGPcreating a virtual interface and configuring BGP
Reach many VPCs over one connection through a Direct Connect gatewayconnecting many VPCs through a Direct Connect gateway
Encrypt traffic in transit with MACsec or a private IP Site-to-Site VPNencrypting traffic over Direct Connect
Make the connection survive a failure and tune failover speedmaking a Direct Connect connection resilient
Bundle connections into one logical link and manage membersmanaging link aggregation groups
Connect on-premises sites to each other over the AWS backbonesetting up SiteLink
Move from a virtual private gateway to a transit gateway without dropping trafficmigrating from a virtual private gateway to a transit gateway

Routing notes

  • Connection model comes first. The choosing-a-connection-type reference is the entry point for a customer with no link yet. It settles dedicated vs hosted vs a link aggregation group, checks location support for the chosen speed, and separates a hosted connection from a hosted virtual interface, a distinction customers confuse constantly. Run it before any cross connect is ordered, since port speed cannot change after the connection is created.

  • A connection carries no traffic until a virtual interface exists. After the cross connect is live, the creating-a-virtual-interface reference is the required next step. The virtual interface type (private, public, or transit) decides what the connection can reach and is fixed at creation. The jumbo-frame maximum transmission unit (MTU) should be set at creation but, on a private or transit virtual interface, can be changed later with a brief connectivity disruption.

  • One VPC vs many VPCs. A single VPC in one Region can be reached over a private virtual interface to a virtual private gateway. Reaching many VPCs, crossing accounts, or crossing Regions is the Direct Connect gateway reference, which also owns the cross-account transit gateway proposal-and-acceptance handshake.

  • Encryption is a separate, deliberate step. Direct Connect is not encrypted in transit by default. The encrypting-traffic reference compares MACsec (Layer 2, over the cross connect) against a private IP Site-to-Site VPN over a transit virtual interface (the recommended IPsec path). Route here whenever the customer mentions regulated data or encryption.

  • Resiliency model vs failover speed are two different questions. The resiliency reference covers both: the Resiliency Toolkit sets the topology and service level target, while BGP hold-timer tuning and Bidirectional Forwarding Detection (BFD) set how fast failover actually converges.

  • Link aggregation group as a model vs as ongoing management. The connection-type reference introduces the link aggregation group as a model choice at order time. The managing-link-aggregation-groups reference owns ongoing member add/remove and minimum-links behavior, where removing a member can take the whole group down.

  • Migration is order-dependent. The virtual-private-gateway-to-transit-gateway migration reference exists because doing the cutover steps out of order drops production traffic. Route any "we outgrew the single-VPC model" request here rather than to the plain Direct Connect gateway reference.

Security Considerations

Direct Connect provides a private link into VPC resources, so the security posture differs from the public internet path. Carry these into every task:

  • Not encrypted by default. Direct Connect does not encrypt traffic in transit. You MUST treat encryption as a separate, deliberate step (MACsec or a private IP Site-to-Site VPN) before regulated or sensitive data crosses the link. See the encrypting-traffic reference.

  • Physical and colocation security. The link terminates on customer equipment at a Direct Connect location or partner colocation. You SHOULD remind the customer that physical access control and partner trust at that facility are part of the connection's security boundary.

  • Monitoring and alerting. You SHOULD recommend CloudWatch alarms on connection state and virtual interface BGP status so connection-state changes and failures trigger alerts rather than relying on manual detection.

  • Audit logging. You SHOULD confirm CloudTrail is enabled and logging directconnect API calls (connection, virtual interface, and gateway-association changes) so all configuration changes are captured for audit and compliance.

  • CloudWatch Logs encryption. You SHOULD encrypt CloudWatch Logs log groups that receive Direct Connect-related logs or alarm state data with a KMS key, so sensitive connection metadata is protected at rest.

  • Least-privilege IAM. You MUST scope IAM permissions for directconnect API actions to the specific actions and resources each principal needs, and prefer ephemeral IAM credentials over long-lived IAM user access keys. You MUST NOT grant directconnect:* on resource * or attach any *FullAccess managed policy; instead scope actions to specific resource ARNs, e.g. arn:aws:directconnect:*:*:dxcon/{connection_id} for a connection, so a compromised principal cannot touch every Direct Connect resource in the account.

  • Route leaks between VPCs. You SHOULD warn that advertising a supernet that overlaps VPC CIDRs can cause unintended VPC-to-VPC traffic over a shared Direct Connect gateway; mitigate with specific prefixes, separate gateways, or transit gateway blackhole routes.

Additional Resources

Files

references/making-a-direct-connect-connection-resilient.md

Making a Direct Connect Connection Resilient

Overview

Domain expertise for making a Direct Connect connection survive a failure and meet an uptime target, and for tuning how fast failover actually happens. Covers the AWS Direct Connect Resiliency Toolkit and its resiliency models, the single-device trap, the failover test, the VPN backup option, and the difference between the resiliency model (topology and service level target) and failover speed (BGP convergence, hold-timer tuning, and Bidirectional Forwarding Detection).

Does not cover choosing the connection model, virtual interface and BGP setup, reaching many VPCs, or encryption. Those are separate references.

Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging, observability). Fall back to the AWS CLI otherwise. The Direct Connect console is regional; pass the customer's working --region on every aws directconnect command.

Table of Contents

  • Overview

  • Decision: resiliency model

  • The single-device trap

  • Resiliency model vs failover speed

  • Failover test and VPN backup

  • Troubleshooting

  • Procedure

  • Additional Resources

Decision: resiliency model

ModelService level targetLayout
Maximum Resiliency99.99%Separate connections on separate devices in more than one location
High Resiliency99.9%One connection at each of two locations
Development and TestNo service level agreementSeparate connections on separate devices in a single location, for non-critical workloads
Single connection95%One connection, no redundancy

Constraints:

  • You MUST match the customer's uptime target to the resiliency model that delivers it before any connections are ordered, because the higher targets require a specific multi-location layout that cannot be retrofitted cheaply.

  • You MUST use the Resiliency Toolkit wizard for Maximum and High Resiliency, since it prevents terminating redundant connections on the same device.

The single-device trap

Constraints:

  • You MUST NOT let the customer order two connections and assume they are redundant; terminating both on the same Direct Connect device leaves a single point of failure. The toolkit prevents this.

Resiliency model vs failover speed

These are two different questions. The toolkit sets the topology; it does not set how fast failover converges.

Constraints:

  • You MUST set the convergence-time expectation: with default BGP timers, failover can take around 90 seconds, while enabling Bidirectional Forwarding Detection (BFD) and tuning the BGP hold timer brings it under a second.

  • You SHOULD offer BFD and hold-timer tuning when the customer needs fast failover, rather than implying the resiliency model alone determines failover speed. When the customer asks "is my failover 3 seconds or 90 seconds," this is the answer.

Failover test and VPN backup

Constraints:

  • You MUST close with the toolkit's failover test, which brings down the BGP session to confirm traffic routes to the redundant virtual interface, so the first real test is not an incident.

  • You SHOULD offer a Site-to-Site VPN as a backup path for customers who need resilience beyond what the connections alone provide; note the MTU drops to 1500 during VPN failover.

Troubleshooting

Production is on a single connection and an outage took it all down

A single connection carries a 95% service level agreement with no redundancy. Move to High or Maximum Resiliency using the toolkit.

Two connections did not protect against a device failure

Both terminated on the same Direct Connect device. Use the Resiliency Toolkit, which prevents this.

Failover is much slower than expected

Default BGP timers leave convergence around 90 seconds. Enable BFD and tune the hold timer for sub-second failover.

Failover was never tested before an incident

Run the toolkit failover test, which brings down the BGP session to verify rerouting, before the next maintenance event.

Procedure

Overview

This procedure matches the uptime target to a resiliency model, builds it through the toolkit, tunes failover speed when needed, runs the failover test, and surfaces the console link.

Parameters
  • uptime_target (required): The service level the customer needs (maps to a resiliency model).

  • location_count (required): How many Direct Connect locations are available.

  • fast_failover (optional): Whether sub-second failover (BFD) is needed.

  • vpn_backup (optional): Whether a Site-to-Site VPN backup path is wanted.

Constraints for parameter acquisition:

  • You MUST establish the uptime target and available locations before choosing a model.

Steps
1. Verify dependencies

Constraints:

  • You MUST confirm credentials with aws sts get-caller-identity.

  • You MUST use ephemeral IAM credentials (e.g., AWS SSO, an instance profile, or aws sts assume-role) rather than long-lived IAM user access keys for Direct Connect management operations.

  • You MUST confirm how many Direct Connect locations the customer can use, since Maximum Resiliency needs more than one.

2. Build the resiliency model through the toolkit

Constraints:

  • You MUST use the Resiliency Toolkit connection wizard for Maximum and High Resiliency so redundant connections do not land on the same device.

  • You MUST NOT mix bandwidths within one Resiliency Toolkit configuration.

3. Tune failover speed when needed

Constraints:

  • When the customer needs fast failover, you MUST enable BFD and tune the BGP hold timer, and set the expectation that default timers leave convergence around 90 seconds.

4. Run the failover test

Constraints:

  • You MUST discover the virtual interfaces and BGP peer addresses on the connection before starting the test:

    aws directconnect describe-virtual-interfaces --connection-id {connection_id} \
      --query 'virtualInterfaces[].{Id:virtualInterfaceId,PeerAddress:bgpPeers[0].customerAddress}' \
      --output table --region {region}

    Capture the virtualInterfaceId and customerAddress from the response.

  • You MUST run the BGP failover test and confirm traffic moves to the redundant path:

    aws directconnect start-bgp-failover-test --virtual-interface-id {virtual_interface_id} \
      --bgp-peers {peer_address} --test-duration-in-minutes 180 --region {region}
  • You MUST poll for test completion:

    aws directconnect list-virtual-interface-test-history \
      --virtual-interface-id {virtual_interface_id} \
      --query "virtualInterfaceTestHistory[0].status" --output text --region {region}
  • For early termination (if the customer needs to abort):

    aws directconnect stop-bgp-failover-test \
      --virtual-interface-id {virtual_interface_id} --region {region}
  • You SHOULD recommend CloudWatch alarms on Direct Connect connection state and virtual interface BGP status metrics, and confirm CloudTrail is capturing directconnect API calls with log file validation enabled and the trail encrypted with a KMS key, and any CloudWatch Logs log groups receiving these events or alarm state data encrypted with a KMS key, so state changes trigger alerts and configuration changes are audited with assured log integrity and confidentiality rather than relying on manual detection.

  • You SHOULD ensure any SNS topics receiving Direct Connect alarm notifications are encrypted with a KMS key and that subscriptions are restricted to authorized operations personnel.

  • You SHOULD remind the customer that the redundant Direct Connect connections are not encrypted in transit by default, and point them to the encrypting-traffic reference if the workload requires encryption.

Constraints:

  • You MUST present the Direct Connect connections console link, filling {region}, and tell the customer to confirm the redundant connections and their states:

    https://console.aws.amazon.com/directconnect/v2/home?region={region}#/connections

Security Considerations

  • Not encrypted by default. Direct Connect does not encrypt traffic in transit. You MUST treat encryption as a separate, deliberate step (MACsec or a private IP Site-to-Site VPN) before regulated or sensitive data crosses the redundant connections. See the encrypting-traffic reference.

  • Ephemeral credentials. You MUST use ephemeral IAM credentials (e.g., AWS SSO, an instance profile, or aws sts assume-role) for Direct Connect management operations rather than long-lived IAM user access keys.

  • Least-privilege IAM. You MUST scope IAM permissions for directconnect API actions to the specific actions and resource ARNs each principal needs, and MUST NOT grant directconnect:* on resource * or attach any *FullAccess managed policy.

Additional Resources

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an MCP server

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
AWS
Publisher
AWS (Official)
Source
aws/agent-toolkit-for-aws · skills/specialized-skills/networking-and-content-delivery-skills/directconnect · commit 0a218f8
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • NOTICE (added by AutoGineer from NOTICE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by AWS or AWS.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download directconnect.zip