Skip to content

Commit b8a7523

Browse files
authored
Merge pull request #102 from ande28em/main
Changed CF description and updated destroy.sh instructions
2 parents 6792ecd + 21e3a12 commit b8a7523

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,11 @@ When you're finished with the workshop or need to clean up the resources to avoi
278278
### Running the Destroy Script
279279
280280
Navigate to the terraform directory and run the destroy script with your desired AWS region as a parameter:
281-
282281
```bash
283-
cd terraform
284-
./destroy.sh <AWS_REGION>
282+
cd /home/ec2-user/eks-saas-gitops/terraform
283+
```
284+
```bash
285+
sh destroy.sh <AWS_REGION>
285286
```
286287

287288
**Example:**

helpers/vs-code-ec2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AWSTemplateFormatVersion: 2010-09-09
22

3-
Description: This stack creates an EC2 instance with VS Code server environment.
3+
Description: This stack creates an EC2 instance with VS Code server environment for Guidance for Building SaaS Applications on Amazon EKS using GitOps (PLACEHOLDER).
44

55
Parameters:
66
EnvironmentName:
@@ -186,7 +186,7 @@ Resources:
186186
- "git clone -b feat/gitea https://github.com/aws-samples/eks-saas-gitops.git /home/ec2-user/environment/eks-saas-gitops"
187187
- "chown -R ec2-user:ec2-user /home/ec2-user/environment"
188188
- "sudo -u ec2-user nohup /usr/bin/code-server --port 8080 --host 0.0.0.0 > /dev/null 2>&1 &"
189-
- "cd /home/ec2-user/environment/eks-saas-gitops/terraform && chmod +x install.sh && sudo -u ec2-user ./install.sh ${AWS_REGION} \"{{allowedIp}}\" > /home/ec2-user/environment/terraform-install.log 2>&1"
189+
- 'cd /home/ec2-user/environment/eks-saas-gitops/terraform && chmod +x install.sh && sudo -u ec2-user ./install.sh ${AWS_REGION} "{{allowedIp}}" > /home/ec2-user/environment/terraform-install.log 2>&1'
190190
- "export WAIT_HANDLE_URL=$(aws ssm get-parameter --name '/eks-saas-gitops/waitcondition-url' --query 'Parameter.Value' --output text --region $AWS_REGION)"
191191
- 'curl -X PUT -H ''Content-Type: application/json'' --data-binary ''{"Status" : "SUCCESS", "Reason" : "Environment Completed", "UniqueId" : "123456", "Data" : "Complete"}'' "$WAIT_HANDLE_URL"'
192192

0 commit comments

Comments
 (0)