cs-image-system-aws-runtime-plugin 0.1.3__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/PKG-INFO +5 -4
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/README.md +1 -1
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/pyproject.toml +4 -3
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/src/cs_image_system/aws_runtime/aws_packer_source.py +1 -1
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/src/cs_image_system/aws_runtime/aws_runtime_builders.py +4 -4
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/src/cs_image_system/aws_runtime/aws_runtime_models.py +4 -8
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/src/cs_image_system/aws_runtime/main.py +1 -2
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/.gitignore +0 -0
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/LICENSE +0 -0
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/src/cs_image_system/aws_runtime/__init__.py +0 -0
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/src/cs_image_system/aws_runtime/aws_provider_specific_image.py +0 -0
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/src/cs_image_system/aws_runtime/aws_utils.py +0 -0
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/src/cs_image_system/aws_runtime/bootstrap.py +0 -0
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/src/cs_image_system/py.typed +0 -0
- {cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/tests/test_aws_provider_specific_image.py +0 -0
{cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cs-image-system-aws-runtime-plugin
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: The aws runtime type: Amazon EC2 as a place where images bake and instances run
|
|
5
5
|
Project-URL: Repository, https://github.com/infrastructurebuilder/cs-image-system-3
|
|
6
6
|
Project-URL: Documentation, https://github.com/infrastructurebuilder/cs-image-system-3/blob/develop/docs/OPERATIONS.md
|
|
@@ -11,8 +11,9 @@ License-File: LICENSE
|
|
|
11
11
|
Requires-Python: >=3.13
|
|
12
12
|
Requires-Dist: boto3>=1.43
|
|
13
13
|
Requires-Dist: botocore>=1.43
|
|
14
|
-
Requires-Dist: cs-image-system-
|
|
15
|
-
Requires-Dist: cs-image-system-
|
|
14
|
+
Requires-Dist: cs-image-system-base==0.1.4
|
|
15
|
+
Requires-Dist: cs-image-system-contract==0.1.4
|
|
16
|
+
Requires-Dist: cs-image-system-hashicorp-utils==0.1.4
|
|
16
17
|
Requires-Dist: pydantic>=2.13
|
|
17
18
|
Requires-Dist: python-hcl2>=8.1
|
|
18
19
|
Description-Content-Type: text/markdown
|
|
@@ -1139,7 +1140,7 @@ when the installed version is below it.
|
|
|
1139
1140
|
- [default-os-plugin](../default-os-plugin/README.md): the OS builders whose runtime entries this plugin resolves to AMIs.
|
|
1140
1141
|
- [packer-plugin](../packer-plugin/README.md): the image builder that asks this plugin for the `amazon-ebs` source and the session provisioners.
|
|
1141
1142
|
- [tf-ebs-instance-plugin](../tf-ebs-instance-plugin/README.md): the instance and storage roots that read this model's networking, profile and session profile.
|
|
1142
|
-
- [dummy-plugin](../dummy-plugin/README.md): the extension template
|
|
1143
|
+
- [dummy-plugin](../dummy-plugin/README.md): the extension template (an unregistered copy of its group model sat at the bottom of this package's models module until stage 63).
|
|
1143
1144
|
- Base classes: [runtime.py](../base/src/cs_image_system/base/models/runtime.py), [cloud_builder.py](../base/src/cs_image_system/base/models/cloud_builder.py), [credentials.py](../base/src/cs_image_system/base/models/credentials.py), [provider_specific_image.py](../base/src/cs_image_system/base/models/provider_specific_image.py), [builder_base_runtime.py](../base/src/cs_image_system/base/basic/builder_base_runtime.py), [abstract_version_checker.py](../base/src/cs_image_system/base/basic/abstract_version_checker.py).
|
|
1144
1145
|
- Consumers of the hooks: [state_query.py](../base/src/cs_image_system/base/state_query.py), [retention.py](../base/src/cs_image_system/base/retention.py), [dispose.py](../base/src/cs_image_system/base/commands/dispose.py), [verify_instance.py](../base/src/cs_image_system/base/commands/verify_instance.py), [unmount.py](../base/src/cs_image_system/base/commands/unmount.py), [relabel.py](../base/src/cs_image_system/base/commands/relabel.py), [release.py](../base/src/cs_image_system/base/release.py), [power_state.py](../base/src/cs_image_system/base/power_state.py), [provider_aliases.py](../base/src/cs_image_system/base/provider_aliases.py), [runtime_facts.py](../base/src/cs_image_system/base/commands/runtime_facts.py).
|
|
1145
1146
|
- [docs/OPERATIONS.md](../../docs/OPERATIONS.md) for the credential contract and the operator's cycles; [docs/DESIGN.md](../../docs/DESIGN.md) for the design; [docs/PLUGINS.md](../../docs/PLUGINS.md) for the package index.
|
{cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/README.md
RENAMED
|
@@ -1120,7 +1120,7 @@ when the installed version is below it.
|
|
|
1120
1120
|
- [default-os-plugin](../default-os-plugin/README.md): the OS builders whose runtime entries this plugin resolves to AMIs.
|
|
1121
1121
|
- [packer-plugin](../packer-plugin/README.md): the image builder that asks this plugin for the `amazon-ebs` source and the session provisioners.
|
|
1122
1122
|
- [tf-ebs-instance-plugin](../tf-ebs-instance-plugin/README.md): the instance and storage roots that read this model's networking, profile and session profile.
|
|
1123
|
-
- [dummy-plugin](../dummy-plugin/README.md): the extension template
|
|
1123
|
+
- [dummy-plugin](../dummy-plugin/README.md): the extension template (an unregistered copy of its group model sat at the bottom of this package's models module until stage 63).
|
|
1124
1124
|
- Base classes: [runtime.py](../base/src/cs_image_system/base/models/runtime.py), [cloud_builder.py](../base/src/cs_image_system/base/models/cloud_builder.py), [credentials.py](../base/src/cs_image_system/base/models/credentials.py), [provider_specific_image.py](../base/src/cs_image_system/base/models/provider_specific_image.py), [builder_base_runtime.py](../base/src/cs_image_system/base/basic/builder_base_runtime.py), [abstract_version_checker.py](../base/src/cs_image_system/base/basic/abstract_version_checker.py).
|
|
1125
1125
|
- Consumers of the hooks: [state_query.py](../base/src/cs_image_system/base/state_query.py), [retention.py](../base/src/cs_image_system/base/retention.py), [dispose.py](../base/src/cs_image_system/base/commands/dispose.py), [verify_instance.py](../base/src/cs_image_system/base/commands/verify_instance.py), [unmount.py](../base/src/cs_image_system/base/commands/unmount.py), [relabel.py](../base/src/cs_image_system/base/commands/relabel.py), [release.py](../base/src/cs_image_system/base/release.py), [power_state.py](../base/src/cs_image_system/base/power_state.py), [provider_aliases.py](../base/src/cs_image_system/base/provider_aliases.py), [runtime_facts.py](../base/src/cs_image_system/base/commands/runtime_facts.py).
|
|
1126
1126
|
- [docs/OPERATIONS.md](../../docs/OPERATIONS.md) for the credential contract and the operator's cycles; [docs/DESIGN.md](../../docs/DESIGN.md) for the design; [docs/PLUGINS.md](../../docs/PLUGINS.md) for the package index.
|
{cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/pyproject.toml
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cs-image-system-aws-runtime-plugin"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.4"
|
|
8
8
|
description = "The aws runtime type: Amazon EC2 as a place where images bake and instances run"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "Mykel Alvis", email = "mykelalvis@infrastructurebuilder.org" }]
|
|
@@ -12,8 +12,9 @@ license = "Apache-2.0"
|
|
|
12
12
|
license-files = ["LICENSE"]
|
|
13
13
|
requires-python = ">=3.13"
|
|
14
14
|
dependencies = [
|
|
15
|
-
"cs-image-system-
|
|
16
|
-
"cs-image-system-
|
|
15
|
+
"cs-image-system-contract==0.1.4",
|
|
16
|
+
"cs-image-system-base==0.1.4",
|
|
17
|
+
"cs-image-system-hashicorp-utils==0.1.4",
|
|
17
18
|
"boto3>=1.43",
|
|
18
19
|
"botocore>=1.43",
|
|
19
20
|
"python-hcl2>=8.1",
|
|
@@ -18,7 +18,7 @@ from typing import Any
|
|
|
18
18
|
import hcl2
|
|
19
19
|
from hcl2 import Builder
|
|
20
20
|
|
|
21
|
-
from cs_image_system.
|
|
21
|
+
from cs_image_system.contract.constants import OOPS_DEFAULTS
|
|
22
22
|
from cs_image_system.hashicorp_utils.hashicorp import FO
|
|
23
23
|
|
|
24
24
|
from .aws_runtime_models import AwsCloudBuilderModel, AwsCloudNetworkingModel
|
|
@@ -8,14 +8,14 @@ from typing import Any
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
from cs_image_system.base.basic.abstract_version_checker import AbstractVersionChecker
|
|
11
|
-
from cs_image_system.
|
|
11
|
+
from cs_image_system.contract.assets import AssetSet
|
|
12
12
|
from cs_image_system.base.basic.builder_base_cloud import CloudBuilderBase
|
|
13
|
-
from cs_image_system.
|
|
14
|
-
from cs_image_system.
|
|
13
|
+
from cs_image_system.contract.constants import VCT
|
|
14
|
+
from cs_image_system.contract.lifecycle import ExecutionLifecyclePhase
|
|
15
15
|
from cs_image_system.base.models.os_builder_runtime_config import OSBuilderBaseImageBuilderSubconfig
|
|
16
16
|
from cs_image_system.base.models.provider_specific_image import ProviderSpecificImage
|
|
17
17
|
from cs_image_system.base import power_state
|
|
18
|
-
from cs_image_system.
|
|
18
|
+
from cs_image_system.contract.core import PluginArtifactProtocol
|
|
19
19
|
|
|
20
20
|
from .aws_provider_specific_image import AwsProviderSpecificImage
|
|
21
21
|
from .aws_runtime_models import AWS_CLI, AwsCloudBuilderModel
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
from dataclasses import field
|
|
6
6
|
from cs_image_system.base.models.credentials import CredentialsBase
|
|
7
|
-
from cs_image_system.
|
|
7
|
+
from cs_image_system.contract.model_config import CSIS_MODEL_CONFIG
|
|
8
8
|
from pydantic.dataclasses import dataclass # stage 23: validation at construction
|
|
9
9
|
from typing import Any
|
|
10
10
|
|
|
11
11
|
import logging
|
|
12
12
|
|
|
13
13
|
from cs_image_system.aws_runtime import aws_utils
|
|
14
|
-
from cs_image_system.
|
|
14
|
+
from cs_image_system.contract.fields import fk_field, parent_field
|
|
15
15
|
log = logging.getLogger(__name__)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
from cs_image_system.
|
|
18
|
+
from cs_image_system.contract.constants import DEFAULT, OOPS_DEFAULTS, VCT
|
|
19
19
|
from cs_image_system.base.models.cloud_builder import CloudBuilderModel, CloudNetworkingConfig
|
|
20
20
|
|
|
21
21
|
|
|
@@ -35,11 +35,7 @@ class AwsCloudNetworkingModel(CloudNetworkingConfig):
|
|
|
35
35
|
# ingress to the shared networks' address space).
|
|
36
36
|
ssh_ingress_security_group_ids: list[str] = field(default_factory=list)
|
|
37
37
|
|
|
38
|
-
_model_id: str | None =
|
|
39
|
-
init=False,
|
|
40
|
-
default=None, metadata={
|
|
41
|
-
"description": "The name of the runtime model this object is associated with",
|
|
42
|
-
})
|
|
38
|
+
_model_id: str | None = parent_field(VCT.RUNTIME_BUILDER_MODEL, description="The name of the runtime model this object is associated with")
|
|
43
39
|
|
|
44
40
|
def __post_init__(self) -> None:
|
|
45
41
|
super().__post_init__()
|
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
import logging
|
|
6
6
|
|
|
7
7
|
from cs_image_system.base.basic.abstract_plugin_metadata import AbstractPluginMetadata
|
|
8
|
-
from cs_image_system.base.protocols.plugin_metadata import PluginMetadataProtocol
|
|
9
8
|
from .aws_runtime_builders import AWS_RUNTIME, AwsCLIVersionChecker, AwsCloudBuilder
|
|
10
9
|
from .aws_runtime_models import AwsCloudBuilderModel
|
|
11
10
|
|
|
12
11
|
log = logging.getLogger(__name__)
|
|
13
12
|
|
|
14
|
-
class AwsRuntimePluginMetadata(AbstractPluginMetadata
|
|
13
|
+
class AwsRuntimePluginMetadata(AbstractPluginMetadata):
|
|
15
14
|
def __init__(self) -> None:
|
|
16
15
|
super().__init__( "1", "3.13",
|
|
17
16
|
{AWS_RUNTIME: [
|
{cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/.gitignore
RENAMED
|
File without changes
|
{cs_image_system_aws_runtime_plugin-0.1.3 → cs_image_system_aws_runtime_plugin-0.1.4}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|