> ## Documentation Index
> Fetch the complete documentation index at: https://docs.springwinter.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CloudFormation permissions

> Review the AWS role permissions requested by Springwinter, including managed policies, exact actions, resource scope, trust conditions, and revocation.

Springwinter's connection CloudFormation stack creates an AWS Identity and Access Management (IAM) role in your account. Use this reference to review its managed policies, all inline permission statements, and the conditions for assuming the role before you connect AWS.

## Scope of this reference

This inventory was checked against the [published connection template](https://springwinter-customer-connection-920263653676.s3.us-west-2.amazonaws.com/customer-connection.json) on 11 November 2026. Your installed stack can use an older version. Review the template in your CloudFormation launch link and the policies attached to your installed role.

Template version tag:

```text theme={null}
fceb2299bdb83ead26bf6a9cd29c0dc7fbe78c8ea48944837f64234f6c5fa0c9
```

> [!WARNING]
>
> The role grants broad access. Many write statements use `Resource: "*"`, without project, tag, or region conditions. These permissions can reach resources outside Springwinter projects. The role can read secrets, read S3 objects, delete resources, create IAM roles, and change inline role policies. The restricted PassRole statements do not restrict the separate IAM role-management statements.

## AWS-managed policy

The role attaches **ReadOnlyAccess** (`arn:${AWS::Partition}:iam::aws:policy/ReadOnlyAccess`). This adds broad account-wide read permissions beyond the inline statements below. It can include access to data, not only resource metadata.

AWS maintains this policy and can change its actions without a Springwinter template update. Review the complete current policy JSON in the [AWS ReadOnlyAccess policy reference](https://docs.aws.amazon.com/aws-managed-policy/latest/reference/ReadOnlyAccess.html). The inline inventory below is not the full effective permission set by itself. The template does not attach `AdministratorAccess`.

## Trust policy

The role permits `sts:AssumeRole` by the AWS account supplied as `ControlPlaneAwsAccountId`, with a `StringEquals` condition requiring the connection's `ExternalId`. The role name comes from `RoleName`, with the required format `SpringWinter-` followed by eight letters or digits. The external ID is a confused-deputy control, not multi-factor authentication.

```json theme={null}
{
  "Statement": [
    {
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": {
          "sts:ExternalId": "${ExternalId}"
        }
      },
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:${AWS::Partition}:iam::${ControlPlaneAwsAccountId}:root"
      }
    }
  ],
  "Version": "2012-10-17"
}
```

## Complete inline permissions

Each section preserves one policy statement, including its exact action names, resource scope, and conditions. All statements have `Effect: "Allow"`. `${AWS::Partition}`, `${AWS::AccountId}`, `${AWS::StackId}`, and `${RoleName}` represent values that CloudFormation resolves for your stack. Fixed `arn:aws` strings remain as written in the template.

A statement's resource restriction applies only to that statement. Other statements and the attached managed policies can grant overlapping access. AWS service control policies, permission boundaries, and explicit denies can further restrict effective access.

> [accordion] NetworkAndCompute
>
> Manage project networks, container services, load balancers, certificates, image repositories, builds, logs, and static website delivery. This also permits IAM role creation and inline policy changes.
>
> ```json theme={null}
> {
>   "Action": [
>     "ec2:DescribeVpcs",
>     "ec2:CreateVpc",
>     "ec2:ModifyVpcAttribute",
>     "ec2:DescribeSubnets",
>     "ec2:DescribeNatGateways",
>     "ec2:DeleteNatGateway",
>     "ec2:ReleaseAddress",
>     "ec2:CreateSubnet",
>     "ec2:ModifySubnetAttribute",
>     "ec2:DescribeAvailabilityZones",
>     "ec2:DescribeInternetGateways",
>     "ec2:CreateInternetGateway",
>     "ec2:AttachInternetGateway",
>     "ec2:DescribeRouteTables",
>     "ec2:CreateRouteTable",
>     "ec2:CreateRoute",
>     "ec2:AssociateRouteTable",
>     "ec2:DescribeSecurityGroups",
>     "ec2:CreateSecurityGroup",
>     "ec2:AuthorizeSecurityGroupIngress",
>     "ec2:CreateTags",
>     "ecs:DescribeClusters",
>     "ecs:CreateCluster",
>     "ecs:RegisterTaskDefinition",
>     "ecs:DescribeTaskDefinition",
>     "ecs:DescribeServices",
>     "ecs:CreateService",
>     "ecs:UpdateService",
>     "ecs:DeleteService",
>     "ecs:DeleteCluster",
>     "ecs:TagResource",
>     "elasticloadbalancing:DescribeLoadBalancers",
>     "elasticloadbalancing:CreateLoadBalancer",
>     "elasticloadbalancing:DeleteLoadBalancer",
>     "elasticloadbalancing:DescribeTargetGroups",
>     "elasticloadbalancing:CreateTargetGroup",
>     "elasticloadbalancing:ModifyTargetGroup",
>     "elasticloadbalancing:DeleteTargetGroup",
>     "elasticloadbalancing:DescribeListeners",
>     "elasticloadbalancing:CreateListener",
>     "elasticloadbalancing:AddListenerCertificates",
>     "elasticloadbalancing:RemoveListenerCertificates",
>     "elasticloadbalancing:ModifyListener",
>     "elasticloadbalancing:DeleteListener",
>     "elasticloadbalancing:DescribeRules",
>     "elasticloadbalancing:CreateRule",
>     "elasticloadbalancing:DeleteRule",
>     "elasticloadbalancing:DescribeTargetHealth",
>     "elasticloadbalancing:AddTags",
>     "acm:RequestCertificate",
>     "acm:DescribeCertificate",
>     "acm:DeleteCertificate",
>     "acm:AddTagsToCertificate",
>     "ecr:DescribeRepositories",
>     "ecr:CreateRepository",
>     "ecr:PutLifecyclePolicy",
>     "ecr:ListImages",
>     "ecr:BatchDeleteImage",
>     "ecr:DeleteRepository",
>     "ecr:TagResource",
>     "codebuild:BatchGetProjects",
>     "codebuild:CreateProject",
>     "codebuild:DeleteProject",
>     "codebuild:UpdateProject",
>     "codebuild:StartBuild",
>     "codebuild:BatchGetBuilds",
>     "logs:CreateLogGroup",
>     "logs:PutRetentionPolicy",
>     "logs:DeleteLogGroup",
>     "logs:TagResource",
>     "logs:GetLogEvents",
>     "logs:FilterLogEvents",
>     "logs:DescribeLogStreams",
>     "cloudwatch:GetMetricData",
>     "iam:GetRole",
>     "iam:CreateRole",
>     "iam:PutRolePolicy",
>     "iam:DeleteRolePolicy",
>     "iam:DeleteRole",
>     "iam:TagRole",
>     "iam:SimulatePrincipalPolicy",
>     "ec2:RevokeSecurityGroupIngress",
>     "ec2:DeleteSecurityGroup",
>     "ec2:DetachInternetGateway",
>     "ec2:DeleteInternetGateway",
>     "ec2:DisassociateRouteTable",
>     "ec2:DeleteRoute",
>     "ec2:DeleteRouteTable",
>     "ec2:DeleteSubnet",
>     "ec2:DeleteVpc",
>     "s3:CreateBucket",
>     "s3:HeadBucket",
>     "s3:PutBucketTagging",
>     "s3:PutBucketPolicy",
>     "s3:PutBucketPublicAccessBlock",
>     "s3:PutBucketOwnershipControls",
>     "s3:GetBucketLocation",
>     "s3:ListBucket",
>     "s3:DeleteObject",
>     "s3:DeleteBucket",
>     "s3:DeleteBucketPolicy",
>     "cloudfront:CreateOriginAccessControl",
>     "cloudfront:GetOriginAccessControl",
>     "cloudfront:ListOriginAccessControls",
>     "cloudfront:CreateFunction",
>     "cloudfront:GetFunction",
>     "cloudfront:UpdateFunction",
>     "cloudfront:DescribeFunction",
>     "cloudfront:PublishFunction",
>     "cloudfront:DeleteFunction",
>     "cloudfront:CreateDistribution",
>     "cloudfront:GetDistribution",
>     "cloudfront:UpdateDistribution",
>     "cloudfront:DeleteDistribution",
>     "cloudfront:DeleteOriginAccessControl",
>     "cloudfront:TagResource"
>   ],
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "NetworkAndCompute"
> }
> ```

> [accordion] CreateElasticLoadBalancingServiceLinkedRole
>
> Create the service-linked role for Elastic Load Balancing. The service name condition and role ARN limit this statement.
>
> ```json theme={null}
> {
>   "Action": "iam:CreateServiceLinkedRole",
>   "Condition": {
>     "StringEquals": {
>       "iam:AWSServiceName": "elasticloadbalancing.amazonaws.com"
>     }
>   },
>   "Effect": "Allow",
>   "Resource": "arn:aws:iam::*:role/aws-service-role/elasticloadbalancing.amazonaws.com/AWSServiceRoleForElasticLoadBalancing",
>   "Sid": "CreateElasticLoadBalancingServiceLinkedRole"
> }
> ```

> [accordion] CreateEcsServiceLinkedRole
>
> Create the service-linked role for ECS. The service name condition and role ARN limit this statement.
>
> ```json theme={null}
> {
>   "Action": "iam:CreateServiceLinkedRole",
>   "Condition": {
>     "StringEquals": {
>       "iam:AWSServiceName": "ecs.amazonaws.com"
>     }
>   },
>   "Effect": "Allow",
>   "Resource": "arn:${AWS::Partition}:iam::*:role/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS",
>   "Sid": "CreateEcsServiceLinkedRole"
> }
> ```

> [accordion] DescribeAccountAttributes
>
> Read EC2 account attributes.
>
> ```json theme={null}
> {
>   "Action": "ec2:DescribeAccountAttributes",
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "DescribeAccountAttributes"
> }
> ```

> [accordion] GetSecurityGroupsForVpc
>
> Read security groups associated with VPCs.
>
> ```json theme={null}
> {
>   "Action": "ec2:GetSecurityGroupsForVpc",
>   "Effect": "Allow",
>   "Resource": "arn:${AWS::Partition}:ec2:*:*:vpc/*",
>   "Sid": "GetSecurityGroupsForVpc"
> }
> ```

> [accordion] ConnectionStackReads
>
> Read the connection stack and its change sets.
>
> ```json theme={null}
> {
>   "Action": [
>     "cloudformation:DescribeStacks",
>     "cloudformation:GetTemplate",
>     "cloudformation:DescribeChangeSet"
>   ],
>   "Effect": "Allow",
>   "Resource": "${AWS::StackId}",
>   "Sid": "ConnectionStackReads"
> }
> ```

> [accordion] ConnectionStackUpdates
>
> Create and execute change sets for this connection stack. The change set name must match sw-update-\*.
>
> ```json theme={null}
> {
>   "Action": [
>     "cloudformation:CreateChangeSet",
>     "cloudformation:ExecuteChangeSet"
>   ],
>   "Condition": {
>     "StringLike": {
>       "cloudformation:ChangeSetName": "sw-update-*"
>     }
>   },
>   "Effect": "Allow",
>   "Resource": "${AWS::StackId}",
>   "Sid": "ConnectionStackUpdates"
> }
> ```

> [accordion] ConnectionRoleReads
>
> Read the inline policies and managed policy attachments of this connection role.
>
> ```json theme={null}
> {
>   "Action": [
>     "iam:GetRolePolicy",
>     "iam:ListRolePolicies",
>     "iam:ListAttachedRolePolicies"
>   ],
>   "Effect": "Allow",
>   "Resource": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${RoleName}",
>   "Sid": "ConnectionRoleReads"
> }
> ```

> [accordion] ConnectionManagedPolicyLifecycle
>
> Through CloudFormation, create, read, version, and delete managed policies under this connection role’s policy path.
>
> ```json theme={null}
> {
>   "Action": [
>     "iam:CreatePolicy",
>     "iam:GetPolicy",
>     "iam:GetPolicyVersion",
>     "iam:ListEntitiesForPolicy",
>     "iam:ListPolicyVersions",
>     "iam:CreatePolicyVersion",
>     "iam:DeletePolicyVersion",
>     "iam:DeletePolicy"
>   ],
>   "Condition": {
>     "ForAnyValue:StringEquals": {
>       "aws:CalledVia": "cloudformation.amazonaws.com"
>     }
>   },
>   "Effect": "Allow",
>   "Resource": "arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/springwinter/connection/${RoleName}/*",
>   "Sid": "ConnectionManagedPolicyLifecycle"
> }
> ```

> [accordion] ConnectionManagedPolicyAttachment
>
> Through CloudFormation, attach or detach managed policies from that path on the existing connection role.
>
> ```json theme={null}
> {
>   "Action": [
>     "iam:AttachRolePolicy",
>     "iam:DetachRolePolicy"
>   ],
>   "Condition": {
>     "ArnLike": {
>       "iam:PolicyARN": "arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/springwinter/connection/${RoleName}/*"
>     },
>     "ForAnyValue:StringEquals": {
>       "aws:CalledVia": "cloudformation.amazonaws.com"
>     }
>   },
>   "Effect": "Allow",
>   "Resource": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${RoleName}",
>   "Sid": "ConnectionManagedPolicyAttachment"
> }
> ```

> [accordion] ArchitectureRoleReads
>
> Read role policies for the architecture view. This statement targets sw-\* roles in your account.
>
> ```json theme={null}
> {
>   "Action": [
>     "iam:ListRolePolicies",
>     "iam:GetRolePolicy",
>     "iam:ListAttachedRolePolicies"
>   ],
>   "Effect": "Allow",
>   "Resource": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/sw-*",
>   "Sid": "ArchitectureRoleReads"
> }
> ```

> [accordion] ArchitecturePolicyReads
>
> Read AWS-managed and customer-managed IAM policy versions.
>
> ```json theme={null}
> {
>   "Action": [
>     "iam:GetPolicy",
>     "iam:GetPolicyVersion"
>   ],
>   "Effect": "Allow",
>   "Resource": [
>     "arn:${AWS::Partition}:iam::aws:policy/*",
>     "arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/*"
>   ],
>   "Sid": "ArchitecturePolicyReads"
> }
> ```

> [accordion] ArchitectureBucketReads
>
> Read public access, encryption, and versioning settings. Bucket name patterns are sw-*, b*, and l\*; they are not ownership checks.
>
> ```json theme={null}
> {
>   "Action": [
>     "s3:GetBucketPublicAccessBlock",
>     "s3:GetEncryptionConfiguration",
>     "s3:GetBucketVersioning"
>   ],
>   "Effect": "Allow",
>   "Resource": [
>     "arn:${AWS::Partition}:s3:::sw-*",
>     "arn:${AWS::Partition}:s3:::b*",
>     "arn:${AWS::Partition}:s3:::l*"
>   ],
>   "Sid": "ArchitectureBucketReads"
> }
> ```

> [accordion] ArchitectureLogGroupReads
>
> Discover log groups.
>
> ```json theme={null}
> {
>   "Action": "logs:DescribeLogGroups",
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "ArchitectureLogGroupReads"
> }
> ```

> [accordion] Cache
>
> Manage ElastiCache Serverless caches and create VPC endpoints.
>
> ```json theme={null}
> {
>   "Action": [
>     "elasticache:CreateServerlessCache",
>     "elasticache:DescribeServerlessCaches",
>     "elasticache:DeleteServerlessCache",
>     "elasticache:AddTagsToResource",
>     "elasticache:ModifyServerlessCache",
>     "ec2:CreateVpcEndpoint"
>   ],
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "Cache"
> }
> ```

> [accordion] Storage
>
> Configure bucket encryption, versioning, CORS, lifecycle, metrics, and access logging. List object versions and delete object versions.
>
> ```json theme={null}
> {
>   "Action": [
>     "s3:PutEncryptionConfiguration",
>     "s3:PutBucketVersioning",
>     "s3:PutBucketCORS",
>     "s3:PutLifecycleConfiguration",
>     "s3:PutMetricsConfiguration",
>     "s3:PutBucketLogging",
>     "s3:ListBucketVersions",
>     "s3:DeleteObjectVersion"
>   ],
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "Storage"
> }
> ```

> [accordion] Sql
>
> Manage RDS instances, clusters, replicas, snapshots, subnet groups, and parameter groups. Manage and read Secrets Manager secrets. Create KMS grants and use the listed cryptographic operations. RotateSecret is a granted permission; automatic database password rotation is not currently provided.
>
> ```json theme={null}
> {
>   "Action": [
>     "rds:CreateDBCluster",
>     "rds:CreateDBInstance",
>     "rds:CreateDBSubnetGroup",
>     "rds:DescribeDBClusters",
>     "rds:DescribeDBInstances",
>     "rds:DescribeDBSubnetGroups",
>     "rds:DescribeOrderableDBInstanceOptions",
>     "rds:ModifyDBCluster",
>     "rds:ModifyDBInstance",
>     "rds:CreateDBInstanceReadReplica",
>     "rds:DescribeDBEngineVersions",
>     "rds:DescribeValidDBInstanceModifications",
>     "rds:FailoverDBCluster",
>     "rds:CreateDBSnapshot",
>     "rds:CreateDBParameterGroup",
>     "rds:ModifyDBParameterGroup",
>     "rds:DeleteDBParameterGroup",
>     "rds:DeleteDBInstance",
>     "rds:DeleteDBCluster",
>     "rds:CreateDBClusterSnapshot",
>     "rds:DeleteDBSubnetGroup",
>     "rds:AddTagsToResource",
>     "rds:ListTagsForResource",
>     "secretsmanager:CreateSecret",
>     "secretsmanager:PutSecretValue",
>     "secretsmanager:TagResource",
>     "secretsmanager:RotateSecret",
>     "secretsmanager:DescribeSecret",
>     "secretsmanager:GetSecretValue",
>     "secretsmanager:DeleteSecret",
>     "kms:CreateGrant",
>     "kms:DescribeKey",
>     "kms:Decrypt",
>     "kms:GenerateDataKey"
>   ],
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "Sql"
> }
> ```

> [accordion] Gateway
>
> Discover ECS tasks and start Systems Manager sessions for gateway connections.
>
> ```json theme={null}
> {
>   "Action": [
>     "ecs:ListTasks",
>     "ecs:DescribeTasks",
>     "ssm:StartSession"
>   ],
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "Gateway"
> }
> ```

> [accordion] CostExplorer
>
> Read cost and usage data.
>
> ```json theme={null}
> {
>   "Action": "ce:GetCostAndUsage",
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "CostExplorer"
> }
> ```

> [accordion] Security
>
> Manage load balancer attributes and database cluster parameter groups. Read S3 objects, including audit log objects.
>
> ```json theme={null}
> {
>   "Action": [
>     "elasticloadbalancing:DescribeLoadBalancerAttributes",
>     "elasticloadbalancing:ModifyLoadBalancerAttributes",
>     "s3:GetObject",
>     "rds:CreateDBClusterParameterGroup",
>     "rds:ModifyDBClusterParameterGroup",
>     "rds:DescribeDBClusterParameterGroups",
>     "rds:DeleteDBClusterParameterGroup"
>   ],
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "Security"
> }
> ```

> [accordion] Bedrock
>
> Discover models and inference profiles. Manage model agreements, use-case submission, and AWS Marketplace subscriptions. This statement does not grant model invocation; selected model access is configured separately on workload roles.
>
> ```json theme={null}
> {
>   "Action": [
>     "bedrock:ListFoundationModels",
>     "bedrock:GetFoundationModel",
>     "bedrock:ListInferenceProfiles",
>     "bedrock:ListFoundationModelAgreementOffers",
>     "bedrock:CreateFoundationModelAgreement",
>     "bedrock:GetFoundationModelAvailability",
>     "bedrock:DeleteFoundationModelAgreement",
>     "bedrock:PutUseCaseForModelAccess",
>     "aws-marketplace:Subscribe",
>     "aws-marketplace:Unsubscribe",
>     "aws-marketplace:ViewSubscriptions"
>   ],
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "Bedrock"
> }
> ```

> [accordion] PassChildRoles
>
> Pass matching ECS task and CodeBuild roles to the services listed in the condition.
>
> ```json theme={null}
> {
>   "Action": "iam:PassRole",
>   "Condition": {
>     "StringEquals": {
>       "iam:PassedToService": [
>         "ecs-tasks.amazonaws.com",
>         "codebuild.amazonaws.com"
>       ]
>     }
>   },
>   "Effect": "Allow",
>   "Resource": [
>     "arn:aws:iam::*:role/sw-ecs-*",
>     "arn:aws:iam::*:role/sw-cb-*"
>   ],
>   "Sid": "PassChildRoles"
> }
> ```

> [accordion] PassEcsInfrastructureRole
>
> Pass matching ECS infrastructure roles to ECS.
>
> ```json theme={null}
> {
>   "Action": "iam:PassRole",
>   "Condition": {
>     "StringEquals": {
>       "iam:PassedToService": "ecs.amazonaws.com"
>     }
>   },
>   "Effect": "Allow",
>   "Resource": "arn:aws:iam::*:role/sw-ecs-infra-*",
>   "Sid": "PassEcsInfrastructureRole"
> }
> ```

## Spring Winter model endpoint managed policy

The template creates a customer-managed IAM policy and attaches it to the connection role. CloudFormation creates it under `/springwinter/connection/${RoleName}/`. This policy adds EC2 launch and lifecycle permissions, instance profile management, and load balancer routing for model endpoints. Some discovery and routing actions have account-wide scope. Review these statements together with the inline policy and AWS-managed `ReadOnlyAccess`.

> [accordion] ModelEndpointDiscoveryAndRouting
>
> Discover GPU images, instances and offerings. Manage security group egress and load balancer target registration and attributes. These actions have no resource restriction in this statement.
>
> ```json theme={null}
> {
>   "Action": [
>     "ec2:DescribeImages",
>     "ec2:DescribeInstances",
>     "ec2:DescribeInstanceTypeOfferings",
>     "ec2:AuthorizeSecurityGroupEgress",
>     "elasticloadbalancing:DescribeTags",
>     "elasticloadbalancing:RegisterTargets",
>     "elasticloadbalancing:DeregisterTargets",
>     "elasticloadbalancing:ModifyTargetGroupAttributes"
>   ],
>   "Effect": "Allow",
>   "Resource": "*",
>   "Sid": "ModelEndpointDiscoveryAndRouting"
> }
> ```

> [accordion] ModelEndpointLaunchDependencies
>
> Allow launch to reference AMIs and this account’s subnets and security groups.
>
> ```json theme={null}
> {
>   "Action": "ec2:RunInstances",
>   "Effect": "Allow",
>   "Resource": [
>     "arn:${AWS::Partition}:ec2:*::image/*",
>     "arn:${AWS::Partition}:ec2:*:${AWS::AccountId}:subnet/*",
>     "arn:${AWS::Partition}:ec2:*:${AWS::AccountId}:security-group/*"
>   ],
>   "Sid": "ModelEndpointLaunchDependencies"
> }
> ```

> [accordion] ModelEndpointLaunch
>
> Allow launch to create instances, volumes and network interfaces with the model endpoint request tag.
>
> ```json theme={null}
> {
>   "Action": "ec2:RunInstances",
>   "Condition": {
>     "StringEquals": {
>       "aws:RequestTag/springwinter:component": "model-endpoint"
>     }
>   },
>   "Effect": "Allow",
>   "Resource": [
>     "arn:${AWS::Partition}:ec2:*:${AWS::AccountId}:instance/*",
>     "arn:${AWS::Partition}:ec2:*:${AWS::AccountId}:volume/*",
>     "arn:${AWS::Partition}:ec2:*:${AWS::AccountId}:network-interface/*"
>   ],
>   "Sid": "ModelEndpointLaunch"
> }
> ```

> [accordion] ModelEndpointNodeLifecycle
>
> Start, stop and terminate instances in this account with the model endpoint tag.
>
> ```json theme={null}
> {
>   "Action": [
>     "ec2:StartInstances",
>     "ec2:StopInstances",
>     "ec2:TerminateInstances"
>   ],
>   "Condition": {
>     "StringEquals": {
>       "ec2:ResourceTag/springwinter:component": "model-endpoint"
>     }
>   },
>   "Effect": "Allow",
>   "Resource": "arn:${AWS::Partition}:ec2:*:${AWS::AccountId}:instance/*",
>   "Sid": "ModelEndpointNodeLifecycle"
> }
> ```

> [accordion] ModelEndpointInstanceProfiles
>
> Manage EC2 instance profiles named `sw-model-*` in this account.
>
> ```json theme={null}
> {
>   "Action": [
>     "iam:CreateInstanceProfile",
>     "iam:GetInstanceProfile",
>     "iam:AddRoleToInstanceProfile",
>     "iam:RemoveRoleFromInstanceProfile",
>     "iam:DeleteInstanceProfile",
>     "iam:TagInstanceProfile"
>   ],
>   "Effect": "Allow",
>   "Resource": "arn:${AWS::Partition}:iam::${AWS::AccountId}:instance-profile/sw-model-*",
>   "Sid": "ModelEndpointInstanceProfiles"
> }
> ```

> [accordion] PassModelEndpointRole
>
> Pass roles named `sw-model-*` in this account to EC2.
>
> ```json theme={null}
> {
>   "Action": "iam:PassRole",
>   "Condition": {
>     "StringEquals": {
>       "iam:PassedToService": "ec2.amazonaws.com"
>     }
>   },
>   "Effect": "Allow",
>   "Resource": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/sw-model-*",
>   "Sid": "PassModelEndpointRole"
> }
> ```

## Review updates and revoke access

Read [Connect AWS](https://docs.springwinter.dev/connect-aws.md) before creating the stack. Review [connection stack updates](https://docs.springwinter.dev/aws-connection-updates.md) before applying a new template. Publishing a template alone does not update an existing stack. Compatible stacks can receive an operator-triggered rollout of a reviewed version; connections without the scoped updater permissions need a one-time manual update.

Removing the connection from Springwinter does not revoke AWS access. Delete the connection CloudFormation stack or remove the role's trust to stop new role assumptions. Allow for AWS propagation and review active sessions separately. Existing workloads and their roles remain in your account and can continue to incur charges. See [Your AWS account](https://docs.springwinter.dev/security/aws-account.md) for the connection and revocation details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.