Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/441 #446

Merged
merged 1 commit into from
Jan 4, 2019
Merged

Conversation

mikeparisstuff
Copy link
Contributor

Issue #, if available:

#441

Description of changes:

This adds support for custom API key expiration dates as well as supports auto-refreshing API keys on push. This also changes CLI behaviour in that now it now merges instead of overwriting the parameters.json file. This also adds a new parameter named APIKeyExpirationEpoch that can be used to tweak API keys as follows:

Resets the API Key to expire 1 week after the next amplify push

{
  "APIKeyExpirationEpoch": "0"
}

Do not create an API key

{
  "APIKeyExpirationEpoch": "-1"
}

Set a custom API key

{
  "APIKeyExpirationEpoch": "1544745428"
}

would make the key expire Thursday, December 13, 2018 11:57:08 PM GMT.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ghost ghost assigned mikeparisstuff Nov 14, 2018
@ghost ghost added the review label Nov 14, 2018
…eters. This also stops the CLI from always overwriting the params and instead only overwrites the parameters that it must
@ghost ghost removed the review label Nov 14, 2018
@mikeparisstuff
Copy link
Contributor Author

mikeparisstuff commented Nov 14, 2018

This was rebased incorrectly. Rebasing, testing, and re-committing.

@krishnaanaril
Copy link

Is the issue #441 fixed?

@kaustavghosh06
Copy link
Contributor

@mikeparisstuff are we documenting this somewhere?

Copy link
Contributor

@kaustavghosh06 kaustavghosh06 left a comment

Choose a reason for hiding this comment

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

LGTM. Pending documentation changes.

@mikeparisstuff
Copy link
Contributor Author

See PR for updated documentation here aws-amplify/docs#352.

@kaustavghosh06 kaustavghosh06 merged commit bd35638 into aws-amplify:master Jan 4, 2019
@ghost ghost removed the review label Jan 4, 2019
@kaustavghosh06
Copy link
Contributor

@mikeparisstuff Can you please update the multienv branch with this change as well?

@kawallis
Copy link

Is there an example of this ?

@github-actions
Copy link

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants