Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Added option to use AWS bundled ca cert Fixes #171 #246

Merged
merged 19 commits into from
Jul 26, 2016
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ aws_secret_access_key = FugaFuga
$ terraforming s3 --profile hoge
```

You can force the AWS SDK to utilize the CA certificate that is bundled with the SDK for systems where the default OpenSSL certificate is not installed (e.g. Windows) by utilizing the `--aws-use-bundled-cert` option.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☝️ one more ☝️


```bash
PS C:\> terraforming ec2 --aws-use-bundled-cert
```

## Usage

```bash
Expand Down
4 changes: 4 additions & 0 deletions lib/terraforming/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ class CLI < Thor
class_option :tfstate, type: :boolean, desc: "Generate tfstate"
class_option :profile, type: :string, desc: "AWS credentials profile"
class_option :region, type: :string, desc: "AWS region"
class_option :"use-bundled-cert",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use :use_bundled_cert.

type: :boolean,
desc: "Use the bundled CA certificate from AWS SDK"

desc "asg", "AutoScaling Group"
def asg
Expand Down Expand Up @@ -202,6 +205,7 @@ def vgw
def execute(klass, options)
Aws.config[:credentials] = Aws::SharedCredentials.new(profile_name: options[:profile]) if options[:profile]
Aws.config[:region] = options[:region] if options[:region]
Aws.use_bundled_cert! if options[:"use-bundled-cert"]
result = options[:tfstate] ? tfstate(klass, options[:merge]) : tf(klass)

if options[:tfstate] && options[:merge] && options[:overwrite]
Expand Down