S3 Provider Environment Deployment

joelb's Avatar

joelb

05 Apr, 2018 01:24 AM

Scenario: I have a Project which creates (static, web site) artifacts. I also have a separate Environment for performing an S3 deployment. The deploy is only run manually (it's not part of the Project's build). Everything works and content is deployed but I'm trying to determine how to delete existing content from the S3 bucket.

When the 'Amazon S3' provider is used in the deployment step of a Project there are before and after deployment scripts available. This allows for AWS CLI scripts to be run (allowing, in my case, the deletion of S3 content). How do I achieve the same thing when the 'Amazon S3' provider is used in an Environment?

Thanks

  1. Support Staff 1 Posted by Ilya Finkelshte... on 05 Apr, 2018 02:36 AM

    Ilya Finkelshteyn's Avatar

    There are 2 options right now you can look at:

    • Deployment projects
    • AWS Elastic Beanstalk (should take care of everything) deployments support is implemented, just not documented yet :) but you can configure it in UI and then export to YAML if needed. If you decide to try it, please ping with any questions. Documentation will be published very soon too.
  2. 2 Posted by joelb on 05 Apr, 2018 09:15 PM

    joelb's Avatar

    Ah - deployment projects did the trick.

    I was having trouble getting the S3 provider to find the downloaded artifacts so I ended-up doing the following:
    1) 'Build' runs the download (iex...) script (as per link you provided)
    2) 'Artifacts' identifies the artifact(s) that were downloaded
    3) 'Deployment' specifies the artifact(s) from step2) and runs my 'Before deployment' script.

    Thanks for setting me on the right path!

  3. Support Staff 3 Posted by Ilya Finkelshte... on 05 Apr, 2018 09:27 PM

    Ilya Finkelshteyn's Avatar

    Great! We plan to make deployment projects first class citizens soon, so people do not struggle this way. Sorry we did not do that yet before you tried it :)

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac