1. Integrate creating/destroying systems with DAD.
2. Run tests on the instance of MySQL RDS, Mongo, or Aurora and then destroy. RDS and Aurora are EXPENSIVE.
3. Add MySQL or Mongo and get replication setup with MySQL or Add a node to Mongo if needed. This one might take a while.
4. When AWS needs to upgrade something, print out cli commands to do the commands. This should not be auto done in general. For most people you don't want that.
#-----------------------------
Making Credentials
1. http://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started_create-admin-group.html
2. Create admin group
3. Create user and assign to group. Save credentials which will be used for api and cli.
4. Add password. Save password ( I think it is also used for api and cli).
5. Install the credentials.
a. http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html
b. sudo pip install awscli
c.
aws help d. aws configure: need access key id, secret access key, default zone. If zone is us-west-2c, put in us-west-2. e. TEST: aws ec2 describe-instances
6. Execute "aws iam list-groups" to test if the setup is okay.
aws iam list-groups
{
"Groups": [
{
"Path": "/",
"CreateDate": "2014-06-05T20:29:53.622Z",
"GroupId":"ABCDEFGHABCDEFGHABCDE",
"Arn": "arn:aws:iam::123456789012:group/Admins",
"GroupName": "Admins"
}
]
}
7. OPTIONAL: put this stuff on an aws server, perhaps use a limited admin account that can just read stuff. Perhaps have it only print out commands needed. But we have to destroy after an hour. Hmmmmm.
AWS links for cli I will pay attention to:
1. http://docs.aws.amazon.com/cli/latest/reference/
2. http://docs.aws.amazon.com/cli/latest/reference/ec2/index.html
3. http://docs.aws.amazon.com/cli/latest/reference/rds/index.html
I don't need all the servers I have, so I will manually destroy them, get the cli to make them, and see if they are made with the right server types. Once ec2 works out, then I moved onto to RDS.
#-----------------------
api -- i did this way before, just writing down the quick steps
1. https://boto3.readthedocs.io/en/latest/guide/quickstart.html
2. pip install boto3
3. apt-get install awscli
4. aws configure --- just for testing, we will be submitting values in DAD not looking at the home users settings
For example:
import boto3
5. https://boto3.readthedocs.io/en/latest/index.html
For example:
import boto3
client = boto3.client( 's3', aws_access_key_id=ACCESS_KEY, aws_secret_access_key=SECRET_KEY, aws_session_token=SESSION_TOKEN, )
5. https://boto3.readthedocs.io/en/latest/index.html
I care only about EC2 and mysql and aurora stuff right now.
6. a. https://boto3.readthedocs.io/en/latest/reference/services/ec2.html
b. https://boto3.readthedocs.io/en/latest/reference/services/es.html
c. https://boto3.readthedocs.io/en/latest/reference/services/rds.html
d.
https://boto3.readthedocs.io/en/latest/reference/services/redshift.html
7. http://boto3.readthedocs.io/en/latest/reference/core/session.html
No comments:
Post a Comment