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
| # B A S I C S | |
| ## Replace c-B with c-A | |
| unbind C-b | |
| set -g prefix C-a | |
| bind-key -r C-a send-prefix | |
| # O P T I O N S | |
| ## Set 256 color mode |
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
| # B A S I C S | |
| ## Replace c-B with c-A | |
| unbind C-b | |
| set -g prefix C-a | |
| bind-key -r C-a send-prefix | |
| # O P T I O N S | |
| ## Set 256 color mode |
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
| # Get all Latest Windows AMIs | |
| aws ssm get-parameters-by-path \ | |
| --path /aws/service/ami-windows-latest | |
| # Get all regions where Cloud9 is available inj | |
| aws ssm get-parameters-by-path \ | |
| --path /aws/service/global-infrastructure/services/cloud9/regions --output json \ | |
| | jq .Parameters[].Value | sort | |
| # Get all services available in the af-south-1 region |
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
| // --- test stage and actions --- | |
| const prepTestChanges = new codepipeline_actions.CloudFormationCreateReplaceChangeSetAction({ | |
| actionName: 'PrepTestChanges', | |
| stackName: stageStackName, | |
| changeSetName: stageChangeSetName, | |
| adminPermissions: true, | |
| parameterOverrides: { | |
| "Environment": |
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
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: > | |
| This is my template that creates a simple EC2 instance | |
| # Parameters | |
| Parameters: | |
| InstanceName: | |
| Type: String | |
| Description: Name your EC2 instance - dont | |
| KeyPair: |
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
| 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 ### |
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
| // 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') |
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 ssm get-parameters-by-path \ | |
| --path /aws/service/global-infrastructure/regions/af-south-1/services --output json | \ | |
| jq .Parameters[].Name | sort | head -10 |