Skip to main content

aws-ecs-gcp-workload-identity-federation

AWS to GCP Workload Identity Federation in Amazon ECS.

This is a package for working with Workload Identity Federation on Amazon ECS (EC2 or Fargate).

When you import this package, the ECS task role credentials are set as environment variables, so you can use them without any special awareness.

Quick start

Refer to the documentation, set up Workload Identity federation and enable access to GCP resources from AWS.

Download credential configuration file (e.g. config-aws-provider.json) and point it to the credential configuration file path.

$ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/config-aws-provider.json

For Amazon ECS, by task definitions, you can pass environment variables to a container (documentation).

Example

For example, when executing a query from AWS to BigQuery, it will be as follows.

import aws_ecs_gcp_workload_identity
from google.cloud import bigquery

project_id = 'my-workload-identity'
bqclient = bigquery.Client(project=project_id)

sql = """
SELECT name, age
FROM `my-data-project.my_dataset.my_table`
"""

query_job = bqclient.query(sql)
results = query_job.result()
for row in results:
    print("{}, {}".format(row.name, row.age))

Contribution

  1. Fork (https://github.com/ohsawa0515/aws-ecs-gcp-workload-identity-federation/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Create new Pull Request

License

See LICENSE.

Metadata

Release files for aws-ecs-gcp-workload-identity-federation 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-ecs-gcp-workload-identity-federation 0.0.1
File Size Uploaded Provenance Actions
aws-ecs-gcp-workload-identity-federation-0.0.1.tar.gz 3.7 kB Without provenance Details for aws-ecs-gcp-workload-identity-federation-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws-ecs-gcp-workload-identity-federation 0.0.1
File Interpreter ABI Platform Actions
aws_ecs_gcp_workload_identity_federation-0.0.1-py3-none-any.whl Python 3 none any Details for aws_ecs_gcp_workload_identity_federation-0.0.1-py3-none-any.whl

Total release size: 7.9 kB

Release files / aws-ecs-gcp-workload-identity-federation-0.0.1.tar.gz

Download URL aws-ecs-gcp-workload-identity-federation-0.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
235e2aea90cb957f309fc5c4bc39241c1647d024f20932689e05da8c488f1819
BLAKE2b-256 checksum
How to use checksums
5c90c2adb3915225c321df5f740cec9ee01ec9f424efe035464c348b6fa666a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release files / aws_ecs_gcp_workload_identity_federation-0.0.1-py3-none-any.whl

Download URL aws_ecs_gcp_workload_identity_federation-0.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29007c45d5789cb683a3dd4a63a9d2c63146a248781b51bc1a618d90c01a86d7
BLAKE2b-256 checksum
How to use checksums
9c09083a456a95937beadf2990a6062c64e1c3ed5db0900e0dd503b20b4e7ddb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Security for aws-ecs-gcp-workload-identity-federation 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page