This file contains 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
{ | |
"dateStart": "", | |
"dateEnd": "", | |
"personOne": "", | |
"personTwo": "", | |
"personThree": "", | |
"phoneOne": "", | |
"phoneTwo": "", | |
"phoneThree": "" | |
} |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>On Call Calendar</title> | |
<!-- CSS only --> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> | |
</head> |
This file contains 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
#Triggers | |
trigger: none | |
#Variables | |
variables: | |
vmImageName: 'ubuntu-latest' | |
envName: 'dev' | |
namespace: 'default' | |
#Stages |
This file contains 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
const AWS = require('aws-sdk'); | |
const docClient = new AWS.DynamoDB.DocumentClient({region: 'us-east-1'}); | |
async function scanItem(params){ | |
try { | |
const data = await docClient.scan(params).promise() | |
return data | |
} catch (err) { | |
return err | |
} |
This file contains 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 * as awsx from "@pulumi/awsx"; | |
const vpc = new awsx.ec2.Vpc("custom"); | |
// Export a few resulting fields to make them easy to use: | |
export const vpcId = vpc.id; | |
export const vpcPrivateSubnetIds = vpc.privateSubnetIds; | |
export const vpcPublicSubnetIds = vpc.publicSubnetIds; |
This file contains 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
Secrets Manager | Parameter Store - Standard | Parameter Store - Advanced | Hashicorp Vault | ||
---|---|---|---|---|---|
Access & Management Governance | IAM Policies | Limited | IAM Policies | Vault Policies | |
Encryption at Rest | AWS KMS | AWS KMS | AWS KMS | AES-256 | |
Protection in Transit | TLS, VPC Endpoints | TLS, VPC Endpoints | TLS, VPC Endpoints | TLS, VPC Endpoints |
This file contains 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
path "secret/*" { | |
capabilities = ["create", "read", "update", "delete", "list"] | |
} | |
path "secret/super-secret" { | |
capabilities = ["deny"] | |
} | |
path "secret/restricted" { | |
capabilities = ["create"] |
This file contains 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": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"secretsmanager:DescribeSecret", | |
"secretsmanager:List*" | |
], | |
"Resource": "*" |
This file contains 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/env bash | |
i=$((0)) | |
for n in $(kubectl get -o=custom-columns=NAMESPACE:.metadata.namespace,KIND:.kind,NAME:.metadata.name pv,pvc,configmap,ingress,service,secret,deployment,statefulset,hpa,job,cronjob --all-namespaces | grep -v 'secrets/default-token') | |
do | |
if (( $i < 1 )); then | |
namespace=$n | |
i=$(($i+1)) | |
if [[ "$namespace" == "PersistentVolume" ]]; then | |
kind=$n |
This file contains 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
vault write database/roles/dev-db-rw \ | |
db_name=dev-mariadb \ | |
creation_statements="CREATE USER '{{name}}'@'%' IDENTIFIED BY '{{password}}';GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO '{{name}}'@'%';" \ | |
revocation_statements="DROP USER IF EXISTS '{{name}}'@'%';" | |
default_ttl="1h" \ | |
max_ttl="24h" | |
NewerOlder