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
| git commit main.py --amend |
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
| git commit main.py --amend | |
| # Notes: This will prompt you to edit the commit message. If you want to keep the same message, simply do: | |
| git commit main.py --amend --no-edit | |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Principal": { | |
| "Service": "lambda.amazonaws.com" | |
| }, | |
| "Action": "sts:AssumeRole" | |
| } |
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
| aws configure |
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
| #to deploy: | |
| cdktf deploy test | |
| #to destroy: | |
| cdktf destroy |
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
| package main | |
| import ( | |
| "encoding/json" | |
| "github.com/aws/constructs-go/constructs/v10" | |
| "github.com/aws/jsii-runtime-go" | |
| "github.com/hashicorp/terraform-cdk-go/cdktf" | |
| "github.com/jcdan3/cdktf-provider-aws-go" | |
| "github.com/jcdan3/cdktf-provider-aws-go/iam" | |
| "github.com/jcdan3/cdktf-provider-aws-go/lambdafunction" |
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
| { | |
| "language": "go", | |
| "app": "go run main.go", | |
| "codeMakerOutput": "generated", | |
| "projectId": "07cdbf37-68b1-400a-9b93-ee9a84616fca", | |
| "terraformProviders": [ | |
| "hashicorp/aws@~> 3.64.2" | |
| ], | |
| "terraformModules": [], | |
| "context": { |
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
| mkdir cdktf-medium | |
| cd cdktf-medium | |
| cdktf init -- template="go" --local | |
| cdktf get |
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
| tags := map[string]string{ | |
| "Environment": "production", | |
| } | |
| mySQS := sqs.NewSqsQueue("testStack", jsii.String("terraform_queue"), &sqs.SqsQueueConfig{ | |
| Name: jsii.String("terraform-example-queue"), | |
| DelaySeconds: jsii.Number(90), | |
| MaxMessageSize: jsii.Number(2048), | |
| MessageRetentionSeconds: jsii.Number(86400), | |
| ReceiveWaitTimeSeconds: jsii.Number(10), |
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
| resource "aws_sqs_queue" "terraform_queue" { | |
| name = "terraform-example-queue" | |
| delay_seconds = 90 | |
| max_message_size = 2048 | |
| message_retention_seconds = 86400 | |
| receive_wait_time_seconds = 10 | |
| tags = { | |
| Environment = "production" | |
| } |
NewerOlder