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

Terraform scripts and documentation to deploy ECS Task Definition for PDS Validate Tool #672

Merged
merged 3 commits into from
Jul 25, 2023

Conversation

ramesh-maddegoda
Copy link
Contributor

🗒️ Summary

This pull request adds terraform scripts and documentation to deploy ECS Task Definition for PDS Validate Tool.

♻️ Related Issues

NASA-PDS/devops#42

@sonatype-lift
Copy link
Contributor

sonatype-lift bot commented Jul 20, 2023

Sonatype Lift is retiring

Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console.
We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

- AWS_SESSION_TOKEN
- AWS_DEFAULT_REGION

4. Open the `terraform.tfvars` file locally and enter the value for following variables. Ensure these values match with your AWS Setup. Most of the below values can be obtained by the system admin team of your AWS account.
Copy link
Member

Choose a reason for hiding this comment

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

@ramesh-maddegoda this works for now, but I think we should try to figure out a more robust solution using AWS Secrets per the same issue @sjoshi-jpl is encountering with his CI/CD work. We can revise this once we come up with a better solution.

Choose a reason for hiding this comment

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

@ramesh-maddegoda @jordanpadams agree with using AWS Secrets approach but that will be something all TF workflows will need to use once we have CI/CD established in MCP. So for now I think this look good.

"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/pds-validate",
"awslogs-region": "us-west-2",
Copy link
Member

Choose a reason for hiding this comment

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

This seems like something we may want to change at some point, but not a huge deal...

Choose a reason for hiding this comment

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

@ramesh-maddegoda can these be passed in as env variables during workflow execution?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sjoshi-jpl and @jordanpadams , I externalized these values as variables that we pass in a tfvars file (same approach we used for Nucleus)

Choose a reason for hiding this comment

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

Looks good now. Approved!

@jordanpadams
Copy link
Member

@sjoshi-jpl can you review this when you have a chance?

@jordanpadams jordanpadams merged commit a597944 into main Jul 25, 2023
@jordanpadams jordanpadams deleted the ecs-task branch July 25, 2023 03:17
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.

None yet

4 participants