Skip to content

rhbelson/terraform-5gedge-edgeDiscoveryEC2

Repository files navigation

EDS Data Plane Module for EC2

This module enables automatic registration of your Amazon EC2-based service endpoints to Verizon's edge discovery service using AWS tags.

Getting Started

To launch this module, clone the repo and initialize the Terraform module.

terraform init

Next, edit terraform.tfvars to populate your EDS key pair and, most importantly, applicationName. You will use this value as the tag for any EC2-based resources that you intend to launch in this region.

terraform apply -auto-approve 

Launching Infrastructure

For any EC2 instances launched thereafter, be sure to use the following Tag for each resource:

Key: eds-ec2-plugin-app-name
Value: <applicationName> #The value you set to the applicationName variable in terraform.tfvars  

Note that, by default, this tag value is set to wavelength-app.

Requirements

Name Version
aws 3.51.0

Providers

Name Version
aws 3.51.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_event_rule.ec2_event_rule resource
aws_cloudwatch_event_target.lambdaTarget resource
aws_iam_role.iam_for_lambda resource
aws_iam_role_policy_attachment.iam_for_lambda_ec2Access resource
aws_iam_role_policy_attachment.iam_for_lambda_ssmAccess resource
aws_lambda_function.edsDataPlaneLambda resource
aws_lambda_permission.allow_cloudwatch_to_call_lambda resource
aws_ssm_parameter.eds-data-plane-api-applicationName resource
aws_ssm_parameter.eds-data-plane-api-edsAccessKey resource
aws_ssm_parameter.eds-data-plane-api-edsSecretKey resource
aws_ssm_parameter.eds-data-plane-api-edsServiceEndpointsId resource
aws_ssm_parameter.eds-data-plane-api-edsServiceProfileId resource
aws_ssm_parameter.eds-data-plane-api-portNumber resource

Inputs

Name Description Type Default Required
applicationName Tag value that AWS API will search for to populate your Edge Discovery Service endpoints (the tag key must read 'eds-ec2-plugin-app-name'). string "wavelength-app" no
edsAccessKey The access key for the Verizon Edge Discovery Service string n/a yes
edsSecretKey The access key for the Verizon Edge Discovery Service string n/a yes
edsServiceEndpointsId The serviceEndpointsId maintained by the Verizon Edge Discovery Service string n/a yes
edsServiceProfileId The serviceProfileId maintained by the Verizon Edge Discovery Service string n/a yes
portNumber The port number of your application service maintained by the Verizon Edge Discovery Service string "80" no
profile The name of your AWS crendential profile, found most often in ~/.aws/credentials string "default" no
region The AWS region to deploy your Wavelength configuration. string "us-east-1" no

Outputs

No outputs.

About

EDS data plane module for EC2

Resources

Stars

Watchers

Forks

Packages

No packages published