AWS S3 버킷과 EC2 Instance 연결

AWS S3 버킷과 EC2 Instance 연결

프로젝트 배포에 사용한 ec2와 S3을 연동해 보았다.

https://celdan.tistory.com/40

추가로 ec2-s3 역할에
AmazonEC2FullAccess, AmazonSSMManagedInstanceCore, CloudWatchAgentServerPolicy
이 세가지 정책도 추가하였다.

1
2
$ aws s3 ls aipin-bucket
2024-06-21 15:24:24 1185 pgvector.zip

이런식으로 s3에 업로드한 파일이 보인다.

1
2
$ aws s3 cp s3://aipin-bucket/pgvector.zip /root
$ unzip /root/pgvector.zip -d /root
Author

hamin

Posted on

2024-06-23

Updated on

2024-06-23

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.
You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.