:orphan: :py:mod:`aws_codeseeder.commands._seedkit_commands` =================================================== .. py:module:: aws_codeseeder.commands._seedkit_commands Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: aws_codeseeder.commands._seedkit_commands.deploy_seedkit aws_codeseeder.commands._seedkit_commands.destroy_seedkit aws_codeseeder.commands._seedkit_commands.seedkit_deployed .. py:function:: deploy_seedkit(seedkit_name: str, managed_policy_arns: Optional[List[str]] = None, deploy_codeartifact: bool = False, session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None, vpc_id: Optional[str] = None, subnet_ids: Optional[List[str]] = None, security_group_ids: Optional[List[str]] = None, permissions_boundary_arn: Optional[str] = None, synthesize: bool = False, **kwargs: Dict[str, Any]) -> None Deploys the seedkit resources into the environment. Resources deployed include: S3 Bucket, CodeArtifact Domain, CodeArtifact Repository, CodeBuild Project, IAM Role, IAM Managed Policy, and KMS Key. All resource names will include the seedkit_name and IAM Role and Policy grant least privilege access to only the resources associated with this Seedkit. Seedkits are deployed to an AWS Region, names on global resources (S3, IAM) include a region identifier to avoid conflicts and ensure the same Seedkit name can be deployed to multiple regions. :param seedkit_name: Name of the seedkit to deploy. All resources will include this in their naming conventions :type seedkit_name: str :param managed_policy_arns: List of Managed Policy to ARNs to attach to the default IAM Role created and used by the CodeBuild Project :type managed_policy_arns: Optional[List[str]] :param deploy_codeartifact: Trigger optional deployment of CodeArtifact Domain and Repository for use by the Seedkit and its libraries :type deploy_codeartifact: bool :param session: Optional Session or function returning a Session to use for all boto3 operations, by default None :type session: Optional[Union[Callable[[], Session], Session]], optional :param vpc_id: If deploying codebuild in a VPC, the VPC-ID to use (must have vpc-id, subnets, and security_group_ids) :type vpc_id: Optional[str] :param subnet_ids: If deploying codebuild in a VPC, a list of Subnets to use (must have vpc-id, subnets, and security_group_ids) :type subnet_ids: Optional[List[str]] :param security_group_ids: If deploying codebuild in a VPC, a list of Security Group IDs to use (must have vpc-id, subnets, and security_group_ids) :type security_group_ids: Optional[List[str]] :param synthesize: Synthesize seedkit template only. Do not deploy. False by default. :type synthesize: bool .. py:function:: destroy_seedkit(seedkit_name: str, session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) -> None Destroys the resources associated with the seedkit. :param seedkit_name: Name of the seedkit to destroy :type seedkit_name: str :param session: Optional Session or function returning a Session to use for all boto3 operations, by default None :type session: Optional[Union[Callable[[], Session], Session]], optional .. py:function:: seedkit_deployed(seedkit_name: str, session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) -> Tuple[bool, str, Dict[str, str]] Checks for existence of the Seedkit CloudFormation Stack If the Stack exists, then the Stack Outputs are also returned to eliminate need for another roundtrip call to CloudFormation. :param seedkit_name: Named of the seedkit to check. :type seedkit_name: str :param session: Optional Session or function returning a Session to use for all boto3 operations, by default None :type session: Optional[Union[Callable[[], Session], Session]], optional :returns: Returns a Tuple with a bool indicating existence of the Stack, the Stack name, and a dict with the Stack Outputs :rtype: Tuple[bool, str, Dict[str, str]]