- Log in to console for
root
account as your IAM username@example.com
- Go to https://console.aws.amazon.com/iam/home
- Add an MFA device to your user
- Generate an access key and store it securely to be added to aws-vault
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
#!/usr/bin/env python3 | |
import re | |
import fileinput | |
print("SET FOREIGN_KEY_CHECKS=0;") | |
def main(): | |
for line in fileinput.input(): |
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
# typically located at ~/.aws/config | |
[profile source-profile] | |
output=json | |
region=ap-southeast-2 | |
mfa_serial=arn:aws:iam::123456789123:mfa/my-name | |
# assumes default backend, you can also use `--backend=file` or others | |
credential_process=aws-vault exec aws-vault-profile --json --prompt=osascript | |
[profile org-stage-role] |
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
<?php | |
// If you are using Composer | |
require 'vendor/autoload.php'; | |
use SendGrid\Mail; | |
$apiKey = getenv('SENDGRID_API_KEY'); | |
$sg = new \SendGrid($apiKey); |
I hereby claim:
- I am joe-niland on github.
- I am joen (https://keybase.io/joen) on keybase.
- I have a public key ASBeLhrre5yxe-DJ8Ay8lIH-A_Rm3VQNcPSvMIhmxcCIhAo
To claim this, I am signing this object:
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
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
trait Securable extends BaseModel | |
{ | |
public function usersWithAccess() { |
I hereby claim:
- I am joe-niland on github.
- I am joen (https://keybase.io/joen) on keybase.
- I have a public key whose fingerprint is 1270 0AF2 AA32 5F10 3689 C93F 5EA5 237A C5F7 EB0E
To claim this, I am signing this object: