Add Terraform configuration files for stack migration and AWS resources#4
Open
sujaysamanta wants to merge 1 commit intomainfrom
Open
Add Terraform configuration files for stack migration and AWS resources#4sujaysamanta wants to merge 1 commit intomainfrom
sujaysamanta wants to merge 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new Terraform stacks-based infrastructure setup, including configuration for an EC2 instance component, deployment definitions, provider and variable management, and supporting infrastructure for managing Terraform stacks and migrations. The changes automate and standardize the provisioning and management of resources using Terraform stacks, and add supporting infrastructure for stack migration and management via Terraform Cloud/Enterprise.
The most important changes are:
Stacks-based EC2 Instance Component Setup:
terraform-aws-modules/ec2-instance/awsmodule, with inputs for AMI, instance type, monitoring, name, subnet, and tags (_stacks_generated/components.tfcomponent.hcl).instance_idandinstance_public_ip(_stacks_generated/outputs.tfcomponent.hcl)._stacks_generated/variables.tfcomponent.hcl)._stacks_generated/providers.tfcomponent.hcl).Deployment and Provider Locking:
dev-workspaceandprod-workspace, wiring in variable sets for AWS credentials and specifying instance configuration for each workspace (_stacks_generated/deployment.tfdeploy.hcl)._stacks_generated/.terraform.lock.hcl).1.13.5for the stacks-generated configuration (_stacks_generated/.terraform-version).Stacks Migration Infrastructure:
tfe(Terraform Cloud/Enterprise) andtfmigrate, and resources for projects, stacks, and stack migrations (stacks_migration_infra/main.tf).tfeandtfmigrateto ensure consistent infrastructure management (stacks_migration_infra/.terraform.lock.hcl).stacks_migration_infra/variables.tf).stacks_migration_infra/output.tf).Stacks Details
Project URL: https://app.terraform.io/app/sujay-test-01/projects/prj-YGNMV3GYrwPLyoPK
Stack URL: https://app.terraform.io/app/sujay-test-01/projects/prj-YGNMV3GYrwPLyoPK/stacks/st-jM9MGFHL32wNEwXP