Skip to content

Instantly share code, notes, and snippets.

View rantoniuk's full-sized avatar
Enjoying espresso

Radek Antoniuk rantoniuk

Enjoying espresso
View GitHub Profile
### Unlock card during ykman usage
.zshrc
```
GPG_TTY=$(tty)
export GPG_TTY
```
### Cross-IAM Invalidate CloudFront from a central pipeline account
###
### new codepipelineActions.LambdaInvokeAction({
### runOrder: 3,
### actionName: 'InvalidateCloudFront',
### role: this.devOpsPipelineRole,
### lambda: Function.fromFunctionArn(this, "test-cloudfrontInvalidator", "arn:aws:lambda:eu-west-1::function:pipelineInvalidateCloudFront"),
### userParameters: {
### bucketName: bucket.bucketName,
### targetPipelineRole: this.testPipelineRole.roleArn
@rantoniuk
rantoniuk / aws-cli-hints.md
Created November 5, 2024 11:56
AWS CLI useful commands

Fetch EC2 Instance Prices for a region

aws --region us-east-1 pricing get-products --service-code AmazonEC2 --filters \
 "Type=TERM_MATCH,Field=capacitystatus,Value=Used" \
 "Type=TERM_MATCH,Field=marketoption,Value=OnDemand" \
 "Type=TERM_MATCH,Field=currentGeneration,Value=Yes" \
 "Type=TERM_MATCH,Field=instanceType,Value=inf1.2xlarge" \
 "Type=TERM_MATCH,Field=location,Value=US West (Oregon)" \
 "Type=TERM_MATCH,Field=operatingSystem,Value=Linux" \