Skip to main content

Octo Infra AWS

Infra AWS Build Pipeline

Infra library for AWS operations

Encapsulates some actions in classes to easier perform actions such as VPC access or EC2 access

Installing

The infra-aws requires Python 3.8+

In order to install octo-infra-aws, you can install it directly from pypi:

pip3 install octo-infra-aws-python

Usage

The library has a few helper classes:

  • EC2
  • Network
  • SSM
  • ServiceDiscovery
  • S3
  • AMI
  • STS

All of the helpers above supply functions to easily manage different actions

Creating / Destroying a VPC along with all its resources:

gw_id: Optional[str] = Network.create_internet_gateway(CreateInternetGateway(
    internet_gateway_name="InternetGW",
    tags={"a": "b"}
))
vpc_id: Optional[str] = Network.create_vpc(CreateVPC(
    cidr_block="10.0.0.0/16",
    vpc_name="VPC",
    internet_gw=gw_id,
    is_public=True,
    tags={"a": "b"}
))
Network.destroy_vpc(DestroyVPC(
  vpc_id=vpc_id,
  full_cleanup=True
))

Creating EC2 Instance:

EC2.create_ec2_instance(CreateEC2(
    vpc_id="vpc-12345,
    subnet_id="subnet-12345",
    instance_name="ec2",
    instance_type="t2.small",
    wait_until_finished=True,
    extra_startup_wait_time_seconds=30,
    security_group="sg-12345",
    keypair="keypair",
    ami="ami-12345",
    tags={"a": "b"},
    user_data="rm -rf"
), instance_count=3)

More usages can be found in code

Metadata

Release files for octo-infra-aws-python 2.0.3

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

Built distribution (wheel)

Table of built distributions (wheels) for octo-infra-aws-python 2.0.3
File Interpreter ABI Platform Actions
octo_infra_aws_python-2.0.3-py3-none-any.whl Python 3 none any Details for octo_infra_aws_python-2.0.3-py3-none-any.whl

Release files / octo_infra_aws_python-2.0.3-py3-none-any.whl

Download URL octo_infra_aws_python-2.0.3-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe87857b4fcfb3ab4d0d20f4f2b1bd6888644dc5efe41988decc921eb1fafc4f
BLAKE2b-256 checksum
How to use checksums
08d812b530115d2b6a3a77651508422941fb971f613ec98bdea388d545ada2e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Security for octo-infra-aws-python 2.0.3

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.

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