This file contains hidden or 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": [ | |
"rds-db:connect" | |
], | |
"Resource": [ | |
"arn:aws:rds-db:region:account-id:dbuser:dbi-resource-id/database-user-name" |
This file contains hidden or 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/bash | |
ROLE_TO_ATTACH=$(aws iam list-roles --query Roles[*].RoleName --output json | grep -i `echo $PROJECT` | cut -d \" -f2) | |
AWS_REGION=$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) | |
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id) | |
AWS_IAM_PROFILE_ASSOCIATION=$(aws ec2 describe-iam-instance-profile-associations \ | |
--region=$(echo $AWS_REGION) \ | |
--filters "Name=instance-id,Values=$(echo $INSTANCE_ID)" \ | |
--output text | egrep -o 'iip\-assoc\-[[:alnum:]]+') | |
aws ec2 replace-iam-instance-profile-association \ |
This file contains hidden or 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
<object height='344' width='425'> | |
<param name='movie' value='http://www.youtube.com/v/mNFRg1Tu1y8&fs=1?'> | |
<param name='allowFullScreen' value='true'> | |
<param name='allowscriptaccess' value='always'> | |
<embed allowfullscreen='true' allowscriptaccess='always' height='344' id='ytplayer' src='http://www.youtube.com/v/mNFRg1Tu1y8&fs=1?' type='application/x-shockwave-flash' width='425'> | |
</object> | |
<div class="STplayer STplayerEmbedded STplayerBarebones" data-version="1.0" id="STtranscriptEmbed_1_mNFRg1Tu1y8"> | |
<div class="STbar"> | |
<div class="STlogo"> |
This file contains hidden or 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
<object height='344' width='425'> | |
<param name='movie' value='http://www.youtube.com/v/mNFRg1Tu1y8&fs=1?'> | |
<param name='allowFullScreen' value='true'> | |
<param name='allowscriptaccess' value='always'> | |
<embed allowfullscreen='true' allowscriptaccess='always' height='344' id='ytplayer' src='http://www.youtube.com/v/mNFRg1Tu1y8&fs=1?' type='application/x-shockwave-flash' width='425'> | |
</object> | |
<div class="STplayer STplayerEmbedded STplayerBarebones" data-version="1.0" id="STtranscriptEmbed_1_mNFRg1Tu1y8"> | |
<div class="STbar"> | |
<div class="STlogo"> |