curl -s https://ip-ranges.amazonaws.com/ip-ranges.json|jq '.prefixes[]|select(.region == "eu-west-2" and .service == "EC2_INSTANCE_CONNECT")'See AWS docs and this article for more details.
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| annotations: | |
| service.beta.kubernetes.io/aws-load-balancer-type: external | |
| service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip | |
| service.beta.kubernetes.io/aws-load-balancer-scheme: internal | |
| labels: | |
| app.kubernetes.io/instance: vault | |
| app.kubernetes.io/name: vault |
| # Vault Helm Chart Value Overrides | |
| global: | |
| enabled: true | |
| tlsDisable: true | |
| injector: | |
| enabled: true | |
| # Use the Vault K8s Image https://github.com/hashicorp/vault-k8s/ | |
| image: | |
| repository: "hashicorp/vault-k8s" |
| --- | |
| global: | |
| enabled: true | |
| # if you need to authenticate to pull images | |
| # imagePullSecrets: | |
| # name: image-pull-secret | |
| injector: | |
| enabled: true | |
| externalVaultAddr: "https://vault.example.com:8200/" | |
| image: |
| @binkmail.com | |
| @bobmail.info | |
| @chammy.info | |
| @devnullmail.com | |
| @letthemeatspam.com | |
| @mailinater.com | |
| @mailinator.net | |
| @mailinator2.com | |
| @notmailinator.com | |
| @reallymymail.com |
| @binkmail.com | |
| @bobmail.info | |
| @chammy.info | |
| @devnullmail.com | |
| @letthemeatspam.com | |
| @mailinater.com | |
| @mailinator.net | |
| @mailinator2.com | |
| @notmailinator.com | |
| @reallymymail.com |
| sudo apt update && sudo apt install gpg jq certbot | |
| wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg >/dev/null | |
| gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint | |
| echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
| sudo apt update && sudo apt install vault-enterprise | |
| cat > /etc/vault.d/vault.hcl <<EOF | |
| ui = true |
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json|jq '.prefixes[]|select(.region == "eu-west-2" and .service == "EC2_INSTANCE_CONNECT")'See AWS docs and this article for more details.
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| def getWorkspaceId() { | |
| def response = httpRequest( | |
| customHeaders: [ | |
| [ name: 'Authorization', value: 'Bearer ' + env.TFE_TOKEN ], | |
| [ name: 'Content-Type', value: 'application/vnd.api+json' ] | |
| ], | |
| url: 'https://app.terraform.io/api/v2/organizations/' + env.TFE_ORGANIZATION + '/workspaces/' + env.TFE_WORKSPACE_NAME |
| {{- with secret "kv/test" -}} | |
| {{- range $k, $v := .Data.data -}} | |
| {{ $k }}={{$v}} | |
| {{ end -}} | |
| {{- end -}} |
| #!/bin/bash -e | |
| # Simple SSH wrapper to use with Vault SSH Secrets Engine | |
| MOUNT="ssh" | |
| ROLE="dev-ssh" | |
| HOST="$1" | |
| TMP_FILE="$(mktemp)" | |
| SIGNED_KEY="$(mktemp)" |