This file contains 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
# aws-preprod: | |
# - key: TFC_AWS_PROVIDER_AUTH | |
# value: true | |
# - key: TFC_AWS_RUN_ROLE_ARN | |
# value: arn:aws:iam::<<replace-aws-master-account-number>>:role/tfc-role | |
# - key: aws_provision_id | |
# category: terraform | |
# value: <<replace-aws-preprod-account-number>> | |
# - key: aws_provision_role | |
# category: terraform |
This file contains 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
# aws-preprod: | |
# - key: TFC_AWS_PROVIDER_AUTH | |
# value: true | |
# - key: TFC_AWS_RUN_ROLE_ARN | |
# value: arn:aws:iam::<<replace-aws-master-account-number>>:role/tfc-role | |
# - key: aws_provision_id | |
# category: terraform | |
# value: <<replace-aws-preprod-account-number>> | |
# - key: aws_provision_role | |
# category: terraform |
This file contains 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
# aws-master: | |
# - key: tfc_organization_name | |
# category: terraform | |
# value: <<replace-terraform-organization-name>> |
This file contains 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
curl --location --request GET '{YOUR_ALB_CNAME}/users' |
This file contains 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
curl --location --request POST '{YOUR_ALB_CNAME}/users' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"email":"jackson@gmail.com", | |
"name":"Jackson" | |
}' |
This file contains 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
curl --location --request GET '{YOUR_ALB_CNAME}/products' |
This file contains 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
curl --location --request POST '{YOUR_ALB_CNAME}/products' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"sku":"88999232", | |
"name":"Book", | |
"price":"1212.02", | |
"vendor":"UES", | |
"description":"Some good book" | |
}' |
This file contains 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
variable "project_name" { | |
type = string | |
description = "Fill in your project name, it must match the project name that run this pipeline" | |
default = "Microservice-App" | |
} | |
variable "app_repo_input_url" { | |
type = string | |
description = "Fill in the input url to import as application repo" | |
default = "https://github.com/jazztong/microservice-theapp.git" |
This file contains 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
Parameters: | |
StateBucketName: | |
Description: Name of the S3 bucket to place the Terraform state files in. | |
Type: String | |
LockTableName: | |
Description: Name of the DynamoDB table to store state locks. | |
Type: String | |
AWSTemplateFormatVersion: 2010-09-09 | |
Resources: |
This file contains 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
host i-* mi-* | |
ProxyCommand C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters portNumber=%p" |
NewerOlder