This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 656
Added option to use AWS bundled ca cert Fixes #171 #246
Merged
Merged
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a49118f
Added option to use AWS bundled ca cert Fixes #171
f9e7d91
correcting rubocop warnings
8f5096b
adding lambda function implementation
mattgartman cd56208
Updated lambda functions and testing
mattgartman 578a1b3
Basic Lambda Function update
mattgartman 772cd56
lambda function erb
mattgartman 43f0ee1
Fixed ERB formatting
mattgartman 786f19b
lambda erb formatting and field name change
mattgartman 4495a58
finished lambda tfstate, bug fixes and refactoring
mattgartman 82f4059
removed bundled cert commands needed for testing
mattgartman 51f4cae
Merge branch 'lambda-support' of https://github.com/mattgartman/terra…
14ab661
Adding terraform tests; updated error message
mattgartman ffad1a6
Merge branch 'lambda-support' of https://github.com/mattgartman/terra…
ccbefb4
Revert "Merge branch 'lambda-support' of https://github.com/mattgartm…
mattgartman 0dd0c71
Revert "Merge branch 'lambda-support' of https://github.com/mattgartm…
mattgartman b4e24b3
Removing aws- prefix
mattgartman e765830
changing dashes to underscores for bundle parameter symbol
mattgartman 2a17a6f
Updating readme to correct cli parameter
mattgartman 21f027f
removed aws- prefix in readme
mattgartman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use |
||
type: :boolean, | ||
desc: "Use the bundled CA certificate from AWS SDK" | ||
|
||
desc "asg", "AutoScaling Group" | ||
def asg | ||
|
@@ -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] | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️ one more ☝️