Skip to content

Commit

Permalink
Merge pull request #2 from dwtechnologies/fix-kms-region
Browse files Browse the repository at this point in the history
Added dummy KMS to no ipsec.
  • Loading branch information
nuttmeister authored Aug 26, 2019
2 parents b5475a1 + 4cb4ab0 commit 5dfec73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions service-gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ func (c *file) generateConfig() error {
// basic stuff is there and seems ok.
// Returns error.
func (c *file) validateConfig() error {
// If IPSec is false. Set dummy KMS REGION.
if c.Config.NoIpsec {
c.Ecs.KmsKeyArn = "::DUMMY:::"
}

switch {
case c.FriendlyName == "":
return fmt.Errorf("FriendlyName is required and can't be empty")
Expand Down

0 comments on commit 5dfec73

Please sign in to comment.