AWS VPC Workflow Steps
Available in PagerDuty Runbook Automation Commercial products.
AWS VPC (Virtual Private Cloud) is a service that contains AWS resources in a virtual network. Users define their own network topology, configure their own IP address range, and create subnets.
The following VPC plugins are available for PagerDuty Runbook Automation:
- Configure VPC Flow Logs (AWS / Configure / VPC / Logs)
- Enable VPC Network Peering (AWS / Enable VPC / Network Peering)
Authentication
Follow the instructions outlined in the AWS Plugins Overview for Runbook Automation to authenticate with AWS.
When defining the IAM Role for Runbook Automation, be sure to include the following permissions in the Policy associated with the role:
ec2:CreateFlowLogs
- Necessary for the Configure VPC Flow Logs plugin.ec2:CreateVpcPeeringConnection
- Necessary for the Enable VPC Network Peering plugin.
Optionally authenticate within the Workflow Step itself by configuring the AWS Credentials.
Configure VPC Flow Logs
The VPC Flow Log plugin provides a workflow step to create flow logs for VPC, Subnet, or Network Interface in AWS.
The plugin requires the following fields:
- Region: AWS region to choose. Leave blank to set it at project (
project.aws.region
) or framework level (aws.region
).- Example:
us-west-2
- Example:
- Resource ID: The ID of the subnet, network interface, or VPC for which you want to create a flow log.
- Example:
subnet-12345678
- Example:
- Resource Type: Enter the resource type (VPC, Subnet, NetworkInterface).
- Example:
VPC
- Example:
- Traffic Type: Enter the traffic type (Accept, Reject, All).
- Example:
All
- Example:
- Arn: The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your account.
- Example:
arn:aws:iam::123456789012:role/flow-log-role
- Example:
- Log Group Name: The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.
- Example:
my-flow-logs
- Example:
Enable VPC Network Peering
The AWS / VPC / Enable Peering plugin is a Node Step that enables VPC network peering between two VPCs in AWS. The plugin requires the following fields:
- Region: AWS region to choose. Leave blank to set it at project (
project.aws.region
) or framework level (aws.region
).- Example:
us-west-2
- Example:
- VPC ID: Enter the VPC ID.
- Example:
vpc-12345678
- Example:
- Peer VPC ID: Enter the Peer VPC ID.
- Example:
vpc-87654321
- Example: