- Log into your AWS account and navigate to EC2
- View Instance Details looking for the Root Device and Block Devices to identify the volume you want to resize
- Click the storage Device and select the EBS ID
- While in the Volumes panel click Actions at the top of the page
- Select Modify Volume to modify that particular volume
- Enter the desired volume size in GBs and click modify, yes to confirm
- SSH into your Instance
- Run
lsblkto list available blocks (volumes) and note the volume size / names - Run
sudo growpart /dev/volumename 1on the volume you want to resize, in our case it wassudo growpart /dev/xvda 1
๐
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
| service: sample-lambda-alb | |
| provider: | |
| name: aws | |
| runtime: nodejs14.x | |
| stage: ${opt:stage, 'dev'} | |
| region: ${opt:region, 'us-west-2'} | |
| profile: crazy | |
| alb: | |
| targetGroupPrefix: tg-${opt:stage, 'dev'}- # this is the name for the target group |
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
| sendKeys(document.getElementById("SELECTOR_GO_HERE"), "My cool message to type", 'input'); |
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
| var email = "YOU_EMAIL_WITHOUT_GMAIL_GOES_HERE"; | |
| var emailList = []; | |
| for(let i = 1; i < email.length - 1; i++){ | |
| for(let x = 1; x <= email.length; x++){ | |
| if(i+1 !== x && i != x) { | |
| let splitEmail = email.split(""); | |
| splitEmail.splice(i, 0, '.'); | |
| splitEmail.splice(x, 0, '.'); | |
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
| CREATE TABLE new_foo LIKE foo; | |
| RENAME TABLE foo TO old_foo, new_foo TO foo; | |
| DROP TABLE old_foo; |
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
| let response; | |
| exports.lambdaHandler = async (event, context) => { | |
| try { | |
| const ret = await axios(url); | |
| response = { | |
| 'statusCode': 200, | |
| 'body': JSON.stringify({ | |
| location: ret.data.trim() | |
| }) |
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
| for D in *; do | |
| if [ -d "${D}" ]; then | |
| echo "Processing -> ${D}" | |
| cd "${D}" && YOU_SPECIAL_COMMAND_GO_HERE && cd - | |
| echo "----------------------------"; | |
| fi | |
| done |
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
| class Secrets { | |
| constructor(awsClient) { | |
| this.client = awsClient; | |
| } | |
| async getSecret(SecretId){ | |
| return new Promise((resolve) => { | |
| this.client.getSecretValue({ SecretId }, (secretManagerError, data) => { | |
| if (secretManagerError) { | |
| if (secretManagerError.code === "DecryptionFailureException") |
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
| deploy: | |
| @cdk deploy --require-approval never | |
| install: | |
| @npm install | |
| install_production: | |
| @npm install --only=prod | |
| watch: |
NewerOlder