Skip to content

+ build artifacts on Amazon s3#229

Merged
a-palchikov merged 2 commits into
masterfrom
dmitri/deploy-to-s3
Mar 12, 2016
Merged

+ build artifacts on Amazon s3#229
a-palchikov merged 2 commits into
masterfrom
dmitri/deploy-to-s3

Conversation

@a-palchikov
Copy link
Copy Markdown
Contributor

This PR adds packaging and deployment of build artifacts to Amazon S3 bucket.

@a-palchikov
Copy link
Copy Markdown
Contributor Author

@kontsevoy @klizhentas Please review

Comment thread build.assets/Makefile Outdated
#
deploy: build-package
@echo "Deploying $(BUILD_TAG) to Amazon S3"
aws s3 cp $(TELEPORT_PACKAGE) \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the only question that I have is that target will fail as this command will fail, but I assume you are going to address it later?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure I understand your comment, but it did fail. Since awscli is already available on jenkins, I attempted to minimize the configuration effort and moved the necessary settings into an ini file - check the planet PR planet to see. I also created a dummy jenkins job to just do a make deploy on an already available workspace to test drive.
So now, both local and jenkins deploys are using the same Makefile path and deploy if the awscli tools are available locally.
Not sure if committing the aws keys is a good idea even to the private repo, but I did not find a better way.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we definitely should never do this. Instead we should allow Jenkins box to push to this bucket using IAM roles, so let's do this instead

@klizhentas
Copy link
Copy Markdown
Contributor

Can one of the admins verify this patch?

@kontsevoy
Copy link
Copy Markdown
Contributor

The patch looks good.
Regarding keys:

DO NOT add keys to the repository. AWS has neat ways to grant applications access to itself (IAMs). Right now Jenkins machine is manually configured with its own AWS user (builder) and AWS CLI is fully functional.

In the future we'll probably migrate to IAMs.

@klizhentas
Copy link
Copy Markdown
Contributor

I think @a-palchikov already migrated to IAM today

a-palchikov added a commit that referenced this pull request Mar 12, 2016
@a-palchikov a-palchikov merged commit 2a24c32 into master Mar 12, 2016
@a-palchikov a-palchikov deleted the dmitri/deploy-to-s3 branch March 12, 2016 01:45
webvictim added a commit that referenced this pull request Feb 19, 2021
3c46009 Add app URI validation regexp to match backend logic (#227) (#229) gravitational/webapps@3c46009

[source: -w teleport-5.0] [target: -t branch/5.0]
alex-kovoy pushed a commit that referenced this pull request Feb 19, 2021
3c46009 Add app URI validation regexp to match backend logic (#227) (#229) gravitational/webapps@3c46009

[source: -w teleport-5.0] [target: -t branch/5.0]
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.

3 participants