How access works
Inframan creates the bucket, but it can’t grant anyone access to it. Granting a bucket to a service’s identity is outside the permissions you give Inframan, deliberately. Instead, Inframan generates the commands and you run them with your own credentials, then Inframan verifies the result. Access is per service and per bucket: two services that write to one bucket need two grants.Give a service access
1
Create the bucket
In the App Store, choose Storage, pick the Infrastructure and give it an Instance name, for example
uploads.2
Give the service an identity
The bucket is granted to the service’s own cloud identity, so the service needs one first. Open the service, select the Security tab and turn on workload identity. See Workload identity.
3
Grant the bucket
Open the service’s Environment tab and connect it to the bucket. Inframan shows the commands that grant it access:
- Google Cloud: two
gcloudcommands, run in Cloud Shell. - AWS: one
aws iam put-role-policycommand naming the bucket, run in AWS CloudShell.
4
Connect it in inframan.yaml
inframan.yaml
UPLOADS_BUCKET receives the bucket’s name. Your code uses the cloud provider’s SDK as usual, and the SDK picks up the service’s identity by itself.A connection to a bucket, and any release that uses one, is refused until that service’s grant is verified. The bucket’s Access tab lists every service that has been granted, with its status.