I hereby claim:
- I am darko-mesaros on github.
- I am ruptwelve (https://keybase.io/ruptwelve) on keybase.
- I have a public key ASDTPyYutDxnE86r3S2xNwGcPoLaoSePOwtrztl7wJc_4Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: > | |
| https://twitch.tv/ruptwelve | |
| Parameters: | |
| InstanceType: | |
| Type: String | |
| Description: Please Choose the instance type | |
| Default: m6g.medium | |
| AllowedValues: | |
| - m6g.medium |
| import * as cdk from '@aws-cdk/core'; | |
| import * as ec2 from '@aws-cdk/aws-ec2'; | |
| export class CdkSsmEc2Stack extends cdk.Stack { | |
| constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
| super(scope, id, props); | |
| // import the default VPC | |
| const vpc = ec2.Vpc.fromLookup(this, 'VPC', { |
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: > | |
| https://twitch.tv/ruptwelve | |
| Parameters: | |
| RepoName: | |
| Type: String | |
| Description: Enter the name for your repository | |
| Default: please-change-me | |
| Resources: | |
| MyGitHubRepo: |
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: > | |
| https://twitch.tv/ruptwelve | |
| Parameters: | |
| EnvName: | |
| Type: String | |
| Description: Enter the name for your IDE | |
| Default: please-change-me | |
| Resources: | |
| Oblak9: |
| Description: This template deploys a VPC, with a set of three public and private subnets spread | |
| across three Availability Zones. It deploys an internet gateway, with a default | |
| route on the public subnets. It deploys a three NAT gateways (one in each AZ), | |
| and default routes for them in the private subnets. | |
| Parameters: | |
| EnvironmentName: | |
| Description: An environment name that is prefixed to resource names | |
| Type: String |
| aws ssm get-parameters-by-path \ | |
| --path /aws/service/global-infrastructure/regions/af-south-1/services --output json | \ | |
| jq .Parameters[].Name | sort | head -10 |
| // VPC | |
| const vpc = new ec2.Vpc(this, 'VPC'); | |
| // Security group | |
| const webSg = new ec2.SecurityGroup(this, 'WebSG',{ | |
| vpc: vpc, | |
| allowAllOutbound: true, | |
| description: "Web Server Security Group" | |
| }); | |
| webSg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(8080), 'Web from anywhere') |
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: > | |
| https://twitch.tv/ruptwelve | |
| Parameters: | |
| NumOfRows: | |
| Type: String | |
| Description: Number of Rows for your config | |
| Default: please-change-me | |
| Resources: | |
| ### PARAMETER STORE ### |