Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial AWS Agent wrapper module #1

Merged

Conversation

pxc-dev
Copy link
Collaborator

@pxc-dev pxc-dev commented Dec 15, 2023

Added support for deploying and managing a montecarlodata/agent via Terraform on AWS.

As outlined here this wrapper module will generate resources to deploy the Dockerhub sourced Apollo agent to Lambda with a storage bucket and various roles. Also included is optional vpc and remote upgrade support as well as a developer example with standard module scaffolding and CI/CD via Circle.

It's recommended to start the review with the README, and you can find a live dev example here:

% make test profile=dev-c1
{
  "build": "567",
  "env": {
    "AWS_DEFAULT_REGION": "us-east-1",
    "AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "512",
    "AWS_LAMBDA_FUNCTION_NAME": "mcd-agent-service-****",
    "AWS_REGION": "us-east-1",
    "MCD_AGENT_CLOUD_PLATFORM": "AWS",
    "MCD_AGENT_IMAGE_TAG": "752656882040.dkr.ecr.us-east-1.amazonaws.com/mcd-agent:latest",
    "MCD_AGENT_IS_REMOTE_UPGRADABLE": "True",
    "MCD_AGENT_WRAPPER_TYPE": "TERRAFORM",
    "MCD_AGENT_WRAPPER_VERSION": "0.1.0",
    "sys_version": "3.11.6 (main, Dec  4 2023, 13:34:04) [GCC 7.3.1 20180712 (Red Hat 7.3.1-17)]"
  },
  "extra": {
    "outbound_ip_address": "****"
  },
  "platform": "AWS",
  "platform_info": {
    "image": "752656882040.dkr.ecr.us-east-1.amazonaws.com/mcd-agent:latest"
  },
  "trace_id": "123456789",
  "version": "0.2.2"
}

main.tf Show resolved Hide resolved
Copy link
Contributor

@mrostan mrostan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@pxc-dev pxc-dev merged commit 3490a7c into main Dec 18, 2023
5 checks passed
@pxc-dev pxc-dev deleted the pchawla/kil-2890-add-support-for-an-aws-agent-terraform-wrapper branch December 18, 2023 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants