Add Generated Terraform Stacks Configuration Files and Update .gitignore#2
Draft
sujaysamanta wants to merge 3 commits intomainfrom
Draft
Add Generated Terraform Stacks Configuration Files and Update .gitignore#2sujaysamanta wants to merge 3 commits intomainfrom
.gitignore#2sujaysamanta wants to merge 3 commits intomainfrom
Conversation
Corrected typos and formatting in the README.
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 new Terraform stack configuration files and supporting infrastructure for managing EC2 instances using Terraform stacks and modules. The changes add a complete set of generated components, provider, variable, output, and deployment configuration files, along with the necessary lockfiles and infrastructure resources to support stack migration and deployment in Terraform Cloud.
The most important changes are:
Terraform Stack Components and Configuration:
_stacks_generated/components.tfcomponent.hclto define anec2_instancecomponent using theterraform-aws-modules/ec2-instance/awsmodule, parameterized by variables and configured for theap-south-1region._stacks_generated/variables.tfcomponent.hclto declare input variables for instance name, type, AMI ID, and AWS credentials, including sensitive and ephemeral flags for secrets._stacks_generated/providers.tfcomponent.hclto configure the AWS provider with required credentials and region, and specify provider version constraints.Deployment and Output Configuration:
_stacks_generated/deployment.tfdeploy.hclto define a deployment for thedev-workspace, including authentication notes, variable sets, and resource import settings._stacks_generated/outputs.tfcomponent.hclto expose the EC2 instance ID and public IP as outputs from the stack component.Infrastructure and Lockfiles for Stack Migration:
stacks_migration_infra/main.tfto provision Terraform Cloud resources (tfe_project,tfe_stack) and configure stack migration using thetfmigrate_stack_migrationresource._stacks_generated/.terraform.lock.hcl,stacks_migration_infra/.terraform.lock.hcl) to pin provider versions for both the stack and migration infrastructure. [1] [2]stacks_migration_infra/variables.tf,stacks_migration_infra/output.tf). [1] [2]Version Pinning:
1.13.5in_stacks_generated/.terraform-versionfor consistency across the generated stack.Stack Details
Project URL: https://app.terraform.io/app/sujay-test-01/projects/prj-yD4XuBYiA8iusSJJ
Stack URL: https://app.terraform.io/app/sujay-test-01/projects/prj-rMfnU5SuXnKqA4iJ/stacks/st-BSd8Z4kSiWKFi3Ws