carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package console
2
3import (
4 "context"
5
6 "github.com/carlosframework/platform/internal/hostactors"
7 "github.com/carlosframework/platform/internal/hostactors/awsmembership"
8)
9
10// consoleMembershipReader is the enrollment pass's membership read (region
11// HA spec 2 §5 step 5, H28, §25): the AWS adapter, over the console's own
12// instance role, which 2c grants autoscaling:DescribeAutoScalingInstances
13// and ec2:DescribeInstances, read-only, in the deployment's AWS regions.
14func consoleMembershipReader(ctx context.Context) (hostactors.MembershipReader, error) {
15 return awsmembership.New(ctx)
16}
17