Demo: Add Terraform configuration files for stack migration and AWS provider setup#7
Open
sujaysamanta wants to merge 2 commits intomainfrom
Open
Demo: Add Terraform configuration files for stack migration and AWS provider setup#7sujaysamanta wants to merge 2 commits intomainfrom
sujaysamanta wants to merge 2 commits 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, component, and deployment files generated by
tf-migrate, as well as supporting infrastructure for managing stack migration using thetfeandtfmigrateproviders. The changes update the AWS provider version and add all necessary files for defining, deploying, and migrating Terraform stacks.The most important changes are:
Terraform Stacks Infrastructure Setup:
_stacks_generated/to define a reusable EC2 instance component (ec2_instance), its variables, outputs, provider configuration, and deployments fordevandprodworkspaces. These files leverage the latest AWS provider and use variable sets for AWS credentials. [1] [2] [3] [4] [5] [6] [7]Stack Migration Infrastructure:
stacks_migration_infra/directory with Terraform configuration to manage stack migration using thetfeandtfmigrateproviders. This includes resources for creating Terraform Cloud projects, stacks, and running migrations, as well as necessary variables and outputs. [1] [2] [3] [4]Configuration and Version Management:
.terraform.lock.hclto require AWS provider version6.28.0and adjusted constraints and hashes accordingly.stack-migrate-config.hclfile to configure organization, project, stack, and workspace-to-deployment mappings for the migration process.These changes lay the foundation for managing Terraform infrastructure using the new stacks model and automate the migration process to Terraform Cloud.