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
resource "aws_iam_user" "monthly_credential_rotation_example" { | |
provider = aws.local | |
name = "monthly-credential-rotation-example" | |
} | |
resource "aws_iam_access_key" "one" { | |
provider = aws.local | |
count = local.modmonth == 0 ? 1 : 0 | |
user = aws_iam_user.monthly_credential_rotation_example.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
# AWS EC2 Commands & Scripts | |
sudo su | |
yum update -y | |
**Getting metadata and other details of your ec2 instance** | |
curl http://169.254.169.254/latest/meta-data | |
curl http://169.254.169.254/latest/meta-data/ami-id | |
curl http://169.254.169.254/latest/meta-data/hostname |
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
#!/usr/bin/env bash | |
# | |
# File: | |
# aws-signature-creator.sh | |
# | |
# Description: | |
# A signature creator for AWS signature version 4 | |
# | |
# References: | |
# https://czak.pl/2015/09/15/s3-rest-api-with-curl.html |
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
<?php | |
/** | |
* @author Jonathon Byrd | |
* @package Address Parsing | |
* | |
* | |
*/ | |
class AddressHelper extends ObjectBase | |
{ | |
/** |