- Get the release from Kubernetes
$ kubectl get secret sh.helm.release.v1.<release>.v<version> -o yaml > release.yaml
- Open the
release.yamlfile in an editor and copydata.releasevalue (or use Bash skills) - Extract the release payload
$ echo <release value> | base64 -D | base64 -D | gunzip > release
- Open release file and change status from pending-rollback to deployed
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
| IAM Permission | Params | |
|---|---|---|
| amplify:CreateApp | iamServiceRoleArn | |
| amplify:UpdateApp | iamServiceRoleArn | |
| appconfig:CreateConfigurationProfile | RetrievalRoleArn | |
| appconfig:UpdateConfigurationProfile | RetrievalRoleArn | |
| appflow:CreateConnectorProfile | connectorProfileConfig.connectorProfileProperties.Redshift.roleArn | |
| appflow:UpdateConnectorProfile | connectorProfileConfig.connectorProfileProperties.Redshift.roleArn | |
| application-autoscaling:RegisterScalableTarget | RoleARN | |
| apprunner:CreateService | SourceConfiguration.AuthenticationConfiguration.AccessRoleArn|InstanceConfiguration.InstanceRoleArn | |
| apprunner:UpdateService | SourceConfiguration.AuthenticationConfiguration.AccessRoleArn|InstanceConfiguration.InstanceRoleArn |
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
| 'use strict'; | |
| console.log('Loading function'); | |
| const aws = require('aws-sdk'); | |
| aws.config.update({region: 'us-east-1'}); | |
| const s3 = new aws.S3({ apiVersion: '2006-03-01' }); | |
| const ddb = new aws.DynamoDB({apiVersion: '2012-10-08'}); | |
| const athena = new aws.Athena(); |
Random query recipes of JMESPath for the AWS CLI tools that I might have written or stumbled upon.
Setting NODE_ENV=production causes these libraries and tools to behave as follows:
npm:
installwill not install devDependenciesshrinkwrapwill not install devDependenciesprunewill remove devDependencies
yarn:
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
| import boto3 | |
| def role_arn_to_session(**args): | |
| """ | |
| Usage : | |
| session = role_arn_to_session( | |
| RoleArn='arn:aws:iam::012345678901:role/example-role', | |
| RoleSessionName='ExampleSessionName') | |
| client = session.client('sqs') | |
| """ |
NetworkManager supports WiFi powersaving but the function is rather undocumented.
From the source code: wifi.powersave can have the following value:
- NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
- NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting
- NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave
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
| #!/bin/bash | |
| # AWS CLI | |
| apt-get install zip -y; | |
| curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"; | |
| unzip awscli-bundle.zip; | |
| ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws; | |
| aws configure; | |
| #AWS Access Key ID [None]: Obtained when creating user in AWS IAM |
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
| #!/bin/bash | |
| set -eu | |
| reg="registry.hub.docker.com" | |
| repo="gliderlabs" | |
| image="alpine" | |
| name="${repo}/${image}" | |
| tag="latest" | |
| parallel=4 |
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": [ | |
| { | |
| "Action": "sts:AssumeRole", | |
| "Principal": { | |
| "Service": "ec2.amazonaws.com" | |
| }, | |
| "Effect": "Allow", | |
| "Sid": "" |
NewerOlder