I hereby claim:
- I am irlevesque on github.
- I am ianquantopian (https://keybase.io/ianquantopian) on keybase.
- I have a public key ASC5Tt9-YjFK5tSmCoFCIBdPM1Wie6b7pWh2PsCHhY73pwo
To claim this, I am signing this object:
| Fri Oct 12 17:38:41 UTC 2018 |
I hereby claim:
To claim this, I am signing this object:
| aws support describe-trusted-advisor-check-result --check-id eW7HH0l7J9 --query 'result.sort_by(flaggedResources[?status!="ok"],&metadata[2])[].metadata' --output table --region us-east-1 |
This is a python 2 snippet showing how to generate headers to authenticate with HashiCorp's Vault using the AWS authentication method.
It will look for credentials in the
default boto3 locations;
if you need to supply custom credentials (such as from an AssumeRole call), you would use the
botocore.session.set_credentials
method before calling create_client.
| #!/bin/bash | |
| # | |
| # vault-ec2-auth.sh | |
| # Authenticates an EC2 instance to Hashicorp Vault | |
| # | |
| # configuration stored in environment variables in /etc/vault/client.conf | |
| # expected configuration (defaults are selected below if none is specified): | |
| # VAULT_ADDR = url of vault server | |
| # VAULT_ROLE = role name to authenticate as |
| diff -u a/SConstruct b/SConstruct | |
| --- a/SConstruct 2015-10-04 14:03:55.000000000 +0100 | |
| +++ b/SConstruct 2015-10-04 14:04:47.000000000 +0100 | |
| @@ -307,7 +307,7 @@ | |
| 0, False) | |
| if darwin: | |
| - osx_version_choices = ['10.6', '10.7', '10.8', '10.9'] | |
| + osx_version_choices = ['10.6', '10.7', '10.8', '10.9', '10.10', '10.11', '10.12'] | |
| add_option("osx-version-min", "minimum OS X version to support", 1, True, |
I hereby claim:
To claim this, I am signing this object:
| >>> from jinja2 import Template | |
| >>> tmpl = """{% if name != "Jeff" %}Nothing to see here move along{% else %} | |
| ... hello {{name}}, how are you?{% endif %}""" | |
| >>> template = Template(tmpl) | |
| >>> print template.render({"name": "Jeff"}) | |
| hello Jeff, how are you? | |
| >>> print template.render({"name": "John"}) | |
| Nothing to see here move along | |
| >>> |
| |____all_aws | |
| | |____ec2.ini | |
| | |____ec2.py | |
| | |____group_vars | |
| | | |____all | |
| | |____shared | |
| |____development | |
| | |____ec2.ini | |
| | |____ec2.py | |
| | |____group_vars |
| |____all_aws | |
| | |____ec2.ini | |
| | |____ec2.py | |
| | |____group_vars | |
| | | |____all | |
| | |____shared | |
| |____development | |
| | |____ec2.ini | |
| | |____ec2.py | |
| | |____group_vars |