Add your description here
Project description
IAM Role for EC2 Instance to Read from S3 Bucket
Overview
This Terraform configuration creates an IAM role, policy, and instance profile for an EC2 instance to read from an S3 bucket named my-app-data.
Components
- IAM Role: Allows EC2 instances to assume the role.
- IAM Policy: Grants read-only access to the specified S3 bucket.
- Instance Profile: Attaches the IAM role to EC2 instances.
Usage
- Ensure you have the required permissions to create IAM roles and policies.
- Run
tofu initto initialize the Terraform configuration. - Run
tofu applyto create the resources.
Notes
- The IAM role follows the naming convention
ianl-agent-*for compliance. - Least-privilege principles are applied by restricting S3 actions to
GetObjectandListBucket. - The instance profile allows EC2 instances to use this role.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ianl_agent-0.1.0.tar.gz
(18.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ianl_agent-0.1.0.tar.gz.
File metadata
- Download URL: ianl_agent-0.1.0.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7f3933fa9daa4d0a2a83c83765eddaab7312445d63beb86ec0d0eac01c878de
|
|
| MD5 |
75fa68b88c05370d155d9c864dddfaa1
|
|
| BLAKE2b-256 |
d39997f2f5d438bade60cd91f1a189c70698b138391eb18b1c511c0da5bcead2
|
File details
Details for the file ianl_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ianl_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e92f845977ba27c606be4c4c30938bbd39dec6cc59b65f91d4ed2169e40be0d1
|
|
| MD5 |
4e445033297865acebfb1a1462aa24fb
|
|
| BLAKE2b-256 |
aa1c6175b363953bde44957b630d6ff0dd63ba4100e6e85f879cd98c3741fc97
|