Skip to content

S3 bucket name must be updated before deploying #97

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

Merged
merged 5 commits into from
Jun 7, 2020

Conversation

eneko
Copy link
Contributor

@eneko eneko commented May 29, 2020

  • Indicate bucket name must be updated before running ./scripts/deploy.sh for example functions

@swift-server-bot
Copy link

Can one of the admins verify this patch?

3 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@eneko eneko closed this May 30, 2020
@eneko eneko deleted the patch-1 branch May 30, 2020 22:14
@tomerd
Copy link
Contributor

tomerd commented Jun 1, 2020

@eneko why close? its a good tip

@eneko eneko restored the patch-1 branch June 5, 2020 19:59
@eneko
Copy link
Contributor Author

eneko commented Jun 5, 2020

@tomerd thanks, will re-open

@eneko eneko reopened this Jun 5, 2020
Note: This script assumes you have AWS CLI installed and credentials setup in `~/.aws/credentials`.
Notes:
- This script assumes you have AWS CLI installed and credentials setup in `~/.aws/credentials`.
- Update `s3_bucket=swift-lambda-test` in `deploy.sh` before running (AWS S3 buckets require a unique global name)
Copy link
Contributor

Choose a reason for hiding this comment

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

this is helpful. we may want to point out both the bucket and function names in the deploy script

Copy link
Contributor

Choose a reason for hiding this comment

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

In my opinion the S3 bucket selection should be in the script, not just in the README.md.
The issue is that the S3 name must be globally unique so a predefined one works only for the owner of it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Andrea-Scuderi, that is a valid point, but I think outside of the scope of this PR.

I think there are two topics to cover:

  1. Help new users, unfamiliar with Lambda, get started quickly with these examples. This was the goal for this PR. Maybe documentation within the script would be helpful too.

  2. Make deployment script(s) more robust, so it's easy to deploy one or more lambdas within a package with one command. This could be a separate PR, maybe even a separate repo (would be nice to have swift cli tool included to do this).

Focusing on the first point, I'll update the PR to indicate how to update both bucket and lambda function name before deploying.

Copy link
Contributor

Choose a reason for hiding this comment

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

would be good to track any future ideas as illustrated ^^ in GitHub issues so we dont loose track of them

@tomerd
Copy link
Contributor

tomerd commented Jun 7, 2020

@swift-server-bot test this please

@tomerd
Copy link
Contributor

tomerd commented Jun 7, 2020

@swift-server-bot test this please

@tomerd tomerd merged commit 71587ea into swift-server:master Jun 7, 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