This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
#resource | |
s3 = boto3.resource(s3, region_name='us-east-1') | |
#create bucket | |
s3.create_bucket(Bucket=bucket_name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.9-alpine3.17 | |
#update, install curl, git, zip/unzip | |
RUN apk update \ | |
&& apk add bash \ | |
&& apk add curl zip git unzip iputils | |
#install aws cli | |
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ | |
&& unzip awscliv2.zip \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
web: | |
image: httpd:2.4.55 | |
ports: | |
- 80:80 | |
networks: | |
- frontend | |
deploy: |
OlderNewer