From 07402bc6b324a2a3bf28f9801e5b60adb120d588 Mon Sep 17 00:00:00 2001 From: Chris Williams <17027446+mistwire@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:24:55 -0400 Subject: [PATCH 1/3] Update m7_commands.txt --- m7/m7_commands.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m7/m7_commands.txt b/m7/m7_commands.txt index 6d293005..c10e28ce 100644 --- a/m7/m7_commands.txt +++ b/m7/m7_commands.txt @@ -10,7 +10,7 @@ $env:AWS_PROFILE="deep-dive" copy .\m7\application_config_example\ .\application_config -Recurse ## Bash or zsh -cp ./m7/application_config_example ./application_config +cp -r ./m7/application_config_example ./application_config ## Create Git Repository # Start by setting the GitHub token environment variable @@ -94,4 +94,4 @@ git push --set-upstream origin tfe-outputs # Add new variable values to application workspace # Create pull request and merge once there are no changes -# Merge the changes back to the main branch in GitHub too \ No newline at end of file +# Merge the changes back to the main branch in GitHub too From 628dd2ff6a9528243da885dc4627e7b39d7ef55f Mon Sep 17 00:00:00 2001 From: Chris Williams <17027446+mistwire@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:59:07 -0400 Subject: [PATCH 2/3] Update m7_commands.txt fixed aws cli command line 58 --- m7/m7_commands.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m7/m7_commands.txt b/m7/m7_commands.txt index c10e28ce..533c2595 100644 --- a/m7/m7_commands.txt +++ b/m7/m7_commands.txt @@ -55,7 +55,7 @@ git push origin --force # Make sure checks complete # Add new workspace to Terraform Cloud linked to Repository # Add the necessary variable inputs using the portal or commands below -aws ec2 describe-vpcs --region=us-east-1 --filters "Name=tag:Name, Values=globo-dev" --query Vpcs[].VpcId --output text +aws ec2 describe-vpcs --region=us-east-1 --filters "Name=tag:Name, Values=globo-dev" --query 'Vpcs[*].VpcId' --output text aws ec2 describe-subnets --region=us-east-1 --filters "Name=vpc-id,Values=vpc-0fa3eb2daaeae0e29" --query Subnets[].SubnetId # Check config of first EC2 instance From e2afdb13e6097aead08b9f21769874b900ff518d Mon Sep 17 00:00:00 2001 From: Chris Williams <17027446+mistwire@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:02:24 -0400 Subject: [PATCH 3/3] Update m7_commands.txt fixed line 59 --- m7/m7_commands.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m7/m7_commands.txt b/m7/m7_commands.txt index 533c2595..ca293eb2 100644 --- a/m7/m7_commands.txt +++ b/m7/m7_commands.txt @@ -56,7 +56,7 @@ git push origin --force # Add new workspace to Terraform Cloud linked to Repository # Add the necessary variable inputs using the portal or commands below aws ec2 describe-vpcs --region=us-east-1 --filters "Name=tag:Name, Values=globo-dev" --query 'Vpcs[*].VpcId' --output text -aws ec2 describe-subnets --region=us-east-1 --filters "Name=vpc-id,Values=vpc-0fa3eb2daaeae0e29" --query Subnets[].SubnetId +aws ec2 describe-subnets --region=us-east-1 --filters "Name=vpc-id,Values=vpc-0fa3eb2daaeae0e29" --query 'Subnets[].SubnetId' # Check config of first EC2 instance ssh -i PATH_TO_PEM_FILE ec2-user@PUBLIC_IP_ADDRESS