Skip to content

fix: HTTPS Params in "svc package" was always false#1150

Merged
mergify[bot] merged 1 commit intoaws:masterfrom
kohidave:master
Jul 16, 2020
Merged

fix: HTTPS Params in "svc package" was always false#1150
mergify[bot] merged 1 commit intoaws:masterfrom
kohidave:master

Conversation

@kohidave
Copy link
Copy Markdown
Contributor

We were missing an else bracket to our if statement
so LB Web Apps were always marked as not HTTPS because
the HTTPS Struct was being redefined.

Note, we need to add some tests for this 100%.

Manual tests

This is for an app that uses HTTPS:
copilot svc package --output-dir infra

Before:

{
  "Parameters" : { 
    ...
    "HTTPSEnabled": "false"
  },
  "Tags": { 
    ...
  }
}

After:

{
  "Parameters" : { 
   ...
    "HTTPSEnabled": "true"
  },
  "Tags": { 
    ...
  }
}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

We were missing an else bracket to our if statement
so LB Web Apps were always marked as not HTTPS because
the HTTPS Struct was being redefined.

Note, we need to add some tests for this 100%.
@kohidave kohidave requested a review from efekarakus July 16, 2020 01:52
@kohidave kohidave requested a review from a team as a code owner July 16, 2020 01:52
@kohidave kohidave changed the title fix: HTTPS Params in Package was always false fix: HTTPS Params in "svc package" was always false Jul 16, 2020
Copy link
Copy Markdown
Contributor

@piradeepk piradeepk left a comment

Choose a reason for hiding this comment

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

lgtm! Can you add a unit test?

@kohidave
Copy link
Copy Markdown
Contributor Author

Yea - I'm trying to figure out how best to do this Hmmm. Will noodle on it - but we should try and get this change in before the next release given that it's kind of a nasty paper cut. But will continue to think about this one.

Copy link
Copy Markdown
Contributor

@piradeepk piradeepk left a comment

Choose a reason for hiding this comment

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

Ship it! 💯

@mergify mergify bot merged commit 741ce8d into aws:master Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants