aws-rds 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b1c285ef2c67a30c80ce7fd061f7273bcd45900108bfaad8ab58a8fe989b1b7
4
- data.tar.gz: 79b4b75bde18f848c3ec519688240a039a2b735361b6fe462dc8a55caf0000fe
3
+ metadata.gz: 67a21766fc05be67a2e13015eb1fa96aa637b1239dc72d7c110aa157b118465f
4
+ data.tar.gz: 1629c91ad379854e0ea48a41a66336d445fc65c70aed374eba017959e2aab00f
5
5
  SHA512:
6
- metadata.gz: a93719e69cf274d15a7d05eccab34346c2e0b532b4fe633f13ca36071cfe1ff0b718d9db83d0c95529a5b7e39957c6d8cd4f47d03c1125bd1333abb54c7dbb07
7
- data.tar.gz: ee807978b0406cc7444b713a4b53f5773d347f0f15a4e3a6d294025082c81abb8fc5e01c496f8933a66c8664fc9698364bffa47c22c82fe5462f79c24e329752
6
+ metadata.gz: 339e3c3604a9cc23f2fc2e3d46b4e422af8aba231b5e6d6abb4ac270e1390deddfc2fee23231ae0cc4c10913730909c38f0f3ee7937e4dd4d0bbcd3ec49452a8
7
+ data.tar.gz: 2218830413ef1e53ffda3fbd1832968bddc7c400b633bcbe84213afea9cf67dad24e20ba3ad723cc1c83e84c423165063f7d89ba74b837e24ce837ff8f6d494b
@@ -3,5 +3,8 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.1.1]
7
+ - comment out auto name tagging of security group for now
8
+
6
9
  ## [0.1.0]
7
10
  - initial release
data/README.md CHANGED
@@ -16,7 +16,7 @@ aws-rds create mydb --profile mydb --db-name mydbname
16
16
  * mydb will be the RDS database identifier show on the AWS console
17
17
  * mydbname is the database name that contains the tables
18
18
 
19
- In a nutshell, the profile parameters are passed to the ruby aws-sdk [AWS::RDS::Client#create_db_instance](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RDS/Client.html#create_db_instance-instance_method) method. So you can specify any parameter you wish that is available there.
19
+ In a nutshell, the profile parameters are passed to the ruby aws-sdk [AWS::RDS::Client#create_db_instance](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RDS/Client.html#create_db_instance-instance_method) method. So you can specify any parameter you wish that is available there. To check out what a profile looks like look at the [example default](example/profiles/default.yml)
20
20
 
21
21
  ## config
22
22
 
@@ -42,6 +42,15 @@ aws-rds create mydb --security-group-name mydb --profile mydb
42
42
  aws-rds create mydb # same as above
43
43
  ```
44
44
 
45
+ ## More Help
46
+
47
+ ```sh
48
+ aws-rds create help
49
+ aws-rds help # general help
50
+ ```
51
+
52
+ Examples are in the [example](example) folder. You will have to update settings.
53
+
45
54
  ## Installation
46
55
 
47
56
  ```sh
@@ -0,0 +1,26 @@
1
+ # RDS Profiles
2
+
3
+ This folder contains RDS profile files that can be used with the [aws-rds](https://github.com/tongueroo/aws-rds) tool to quickly launch RDS instances consistently with some pre-configured settings.
4
+
5
+ As mentioned in the aws-rds README, the script ultimately uses the parameters in the profile files and pass them to the [create_db_instance](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/RDS/Client.html#create_db_instance-instance_method) method of the ruby aws-sdk. So you can use any parameter available there to configure the RDS instance settings.
6
+
7
+ Check out [profiles/default.yml](profiles/default.yml) for the common settings.
8
+
9
+ ## Creating RDS Databases
10
+
11
+ To create your own RDS instance for testing you can run:
12
+
13
+ ```sh
14
+ aws-rds create mydb --security-group-name mydbsg
15
+ ```
16
+
17
+ ## Test Connection
18
+
19
+ Ssh into an instance that has access to the server and verify that you can connect.
20
+
21
+ ```
22
+ ssh ec2-user@ec2-xxx.com # ssh into one of your instances
23
+ ping xxx.us-east-1.rds.amazonaws.com # test if you can get through firewall
24
+ PGPASSWORD=xxx psql -h xxx.us-east-1.rds.amazonaws.com -U xxx # replace the xxx values with the real values
25
+ # this can be found in profiles/default.yml if you are using the default profile
26
+ ```
@@ -0,0 +1,3 @@
1
+ ---
2
+ vpc_id: vpc-123 # custom main vpc, use this when not specified in profile
3
+ db_subnet_group_name: private-db-subnet-group # private subnet group
@@ -0,0 +1,10 @@
1
+ ---
2
+ allocated_storage: 20
3
+ db_instance_class: db.t2.micro
4
+ master_user_password: changeme
5
+ master_username: changeme
6
+ engine: postgres
7
+
8
+ # db_name: mydb # can be overridden at the cli
9
+ # vpc_security_group_ids: # automatically created for you if not set
10
+ # db_instance_identifier: not respected here. always set from the cli
@@ -0,0 +1 @@
1
+ db_name: demo
@@ -20,10 +20,11 @@ module AwsRds
20
20
  description: name,
21
21
  vpc_id: AwsRds.config["vpc_id"],
22
22
  )
23
- ec2.create_tags(
24
- resources: [result.group_id],
25
- tags: [{ key: "Name", value: name }],
26
- )
23
+ # TODO: add waiter
24
+ # ec2.create_tags(
25
+ # resources: [result.group_id],
26
+ # tags: [{ key: "Name", value: name }],
27
+ # )
27
28
  resp = ec2.describe_security_groups(group_ids: [result.group_id])
28
29
  resp.security_groups.first
29
30
  end
@@ -1,3 +1,3 @@
1
1
  module AwsRds
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-rds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
@@ -169,6 +169,10 @@ files:
169
169
  - README.md
170
170
  - Rakefile
171
171
  - aws-rds.gemspec
172
+ - example/README.md
173
+ - example/config/development.yml
174
+ - example/profiles/default.yml
175
+ - example/profiles/mydb.yml
172
176
  - exe/aws-rds
173
177
  - lib/aws-rds.rb
174
178
  - lib/aws_rds/aws_services.rb