{"id":45150896,"url":"https://github.com/hops-ops/aws-pod-identity","last_synced_at":"2026-05-23T01:11:21.070Z","repository":{"id":332034351,"uuid":"1097282757","full_name":"hops-ops/aws-pod-identity","owner":"hops-ops","description":"Configures EKS Pod Identity for a cluster","archived":false,"fork":false,"pushed_at":"2026-01-15T01:05:37.000Z","size":63,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-17T05:20:00.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hops-ops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-15T21:53:47.000Z","updated_at":"2026-01-15T01:39:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hops-ops/aws-pod-identity","commit_stats":null,"previous_names":["hops-ops/aws-pod-identity"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hops-ops/aws-pod-identity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Faws-pod-identity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Faws-pod-identity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Faws-pod-identity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Faws-pod-identity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hops-ops","download_url":"https://codeload.github.com/hops-ops/aws-pod-identity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Faws-pod-identity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29639808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"online","status_checked_at":"2026-02-20T02:00:07.535Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-20T03:01:30.035Z","updated_at":"2026-02-20T03:01:31.266Z","avatar_url":"https://github.com/hops-ops.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS EKS Pod Identity\n\nA Crossplane configuration that provisions IAM roles and EKS Pod Identity associations for Kubernetes service accounts. Grant AWS permissions to workloads without hand-crafting IAM resources.\n\n## Getting Started\n\n### Prerequisites\n\n- Amazon EKS cluster with Pod Identity agent installed\n- Crossplane installed in your cluster\n- Required providers: `provider-aws-iam` (≥ v2.1.1), `provider-aws-eks` (≥ v2.1.1)\n\n### Installation\n\n```yaml\napiVersion: pkg.crossplane.io/v1\nkind: Configuration\nmetadata:\n  name: aws-pod-identity\nspec:\n  package: ghcr.io/hops-ops/aws-pod-identity:latest\n  packagePullSecrets:\n    - name: ghcr\n```\n\n### Minimal Example\n\nCreate a Pod Identity for a service account with basic S3 read access:\n\n```yaml\napiVersion: aws.hops.ops.com.ai/v1alpha1\nkind: PodIdentity\nmetadata:\n  name: my-app\n  namespace: my-namespace\nspec:\n  clusterName: my-cluster\n  region: us-west-2\n  serviceAccount:\n    name: my-app\n    namespace: my-namespace\n  inlinePolicy:\n    - name: s3-read\n      policy: |\n        {\n            \"Version\": \"2012-10-17\",\n            \"Statement\": [{\n                \"Effect\": \"Allow\",\n                \"Action\": [\"s3:GetObject\"],\n                \"Resource\": [\"arn:aws:s3:::my-bucket/*\"]\n            }]\n        }\n```\n\nThis creates:\n- An IAM role with EKS Pod Identity trust policy\n- A Pod Identity Association linking the role to your service account\n\n## Growing\n\n### Adding Managed Policies\n\nAttach AWS managed policies alongside inline policies:\n\n```yaml\nspec:\n  managedPolicyArns:\n    - arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy\n    - arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy\n```\n\n### Custom Role Naming\n\nControl the IAM role name:\n\n```yaml\nspec:\n  rolePrefix: podid-        # Prepends to auto-generated name\n  roleNameOverride: my-role # Or specify exact name\n```\n\n### Permissions Boundaries\n\nEnforce security boundaries on the IAM role:\n\n```yaml\nspec:\n  permissionsBoundaryArn: arn:aws:iam::123456789012:policy/eks-permissions-boundary\n```\n\n### Custom Labels\n\nAdd labels to all managed resources for tracking and organization:\n\n```yaml\nspec:\n  labels:\n    team: platform\n    app: loki\n    cost-center: engineering\n```\n\nDefault labels are automatically applied:\n- `hops.ops.com.ai/managed: \"true\"`\n- `hops.ops.com.ai/podidentity: \u003cname\u003e`\n\n### Custom Provider Configuration\n\nUse a specific AWS provider config:\n\n```yaml\nspec:\n  providerConfigRef:\n    name: shared-aws-provider\n```\n\n## Enterprise Scale\n\n### Multiple Environments\n\nUse namespace isolation with provider configs per environment:\n\n```yaml\n# Production\napiVersion: aws.hops.ops.com.ai/v1alpha1\nkind: PodIdentity\nmetadata:\n  name: my-app\n  namespace: production\nspec:\n  clusterName: prod-cluster\n  providerConfigRef:\n    name: aws-prod\n  labels:\n    environment: production\n  ...\n\n# Staging\napiVersion: aws.hops.ops.com.ai/v1alpha1\nkind: PodIdentity\nmetadata:\n  name: my-app\n  namespace: staging\nspec:\n  clusterName: staging-cluster\n  providerConfigRef:\n    name: aws-staging\n  labels:\n    environment: staging\n  ...\n```\n\n### Orphan Protection\n\nPrevent accidental AWS resource deletion by removing Delete from management policies:\n\n```yaml\nspec:\n  managementPolicies:\n    - Create\n    - Observe\n    - Update\n    - LateInitialize\n```\n\nWith this configuration, deleting the PodIdentity claim will NOT delete the underlying AWS resources.\n\n## Import Existing\n\nAdopt pre-existing IAM roles and Pod Identity associations into Crossplane management.\n\n### Import Pattern\n\n```yaml\napiVersion: aws.hops.ops.com.ai/v1alpha1\nkind: PodIdentity\nmetadata:\n  name: imported-workload\n  namespace: default\nspec:\n  clusterName: my-cluster\n  region: us-west-2\n  # Orphan policy - resources persist after claim deletion\n  managementPolicies:\n    - Create\n    - Observe\n    - Update\n    - LateInitialize\n  serviceAccount:\n    namespace: monitoring\n    name: prometheus\n  # Import existing IAM role by name\n  role:\n    externalName: my-existing-role\n  # Import existing association by ID\n  association:\n    externalName: a-0123456789abcdef0\n  inlinePolicy:\n    - name: monitoring\n      policy: |\n        ...\n```\n\n### Getting External Names\n\nAfter initial creation (or to find existing resources):\n\n```bash\n# IAM Role external name (the role name)\nkubectl get role \u003cname\u003e -o jsonpath='{.metadata.annotations.crossplane\\.io/external-name}'\n\n# Pod Identity Association ID\nkubectl get podidentityassociation \u003cname\u003e -o jsonpath='{.status.atProvider.id}'\n```\n\n## Development\n\n```bash\nmake render:all   # Render all examples\nmake validate:all # Validate against schemas\nmake test         # Run unit tests\nmake e2e          # Run E2E tests\nmake publish tag=v1.0.0  # Build and push package\n```\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhops-ops%2Faws-pod-identity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhops-ops%2Faws-pod-identity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhops-ops%2Faws-pod-identity/lists"}