Skip to main content

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

  1. IAM Role: Allows EC2 instances to assume the role.
  2. IAM Policy: Grants read-only access to the specified S3 bucket.
  3. Instance Profile: Attaches the IAM role to EC2 instances.

Usage

  1. Ensure you have the required permissions to create IAM roles and policies.
  2. Run tofu init to initialize the Terraform configuration.
  3. Run tofu apply to 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 GetObject and ListBucket.
  • The instance profile allows EC2 instances to use this role.

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ianl_agent-0.1.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

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

Hashes for ianl_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c7f3933fa9daa4d0a2a83c83765eddaab7312445d63beb86ec0d0eac01c878de
MD5 75fa68b88c05370d155d9c864dddfaa1
BLAKE2b-256 d39997f2f5d438bade60cd91f1a189c70698b138391eb18b1c511c0da5bcead2

See more details on using hashes here.

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

Hashes for ianl_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e92f845977ba27c606be4c4c30938bbd39dec6cc59b65f91d4ed2169e40be0d1
MD5 4e445033297865acebfb1a1462aa24fb
BLAKE2b-256 aa1c6175b363953bde44957b630d6ff0dd63ba4100e6e85f879cd98c3741fc97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page