in src/constructs/iam/fastly-logs-iam.ts [42:55]
constructor(scope: GuStack, props: GuFastlyLogsIamRoleProps) {
const { path = "*" } = props; // set defaults
const fastlyCustomerId = GuFastlyCustomerIdParameter.getInstance(scope).valueAsString;
super(scope, "GuFastlyLogsIamRole", {
assumedBy: new AccountPrincipal(FASTLY_AWS_ACCOUNT_ID),
externalIds: [fastlyCustomerId],
});
const policy = new GuPutS3ObjectsPolicy(scope, "GuFastlyLogsIamRolePolicy", {
bucketName: props.bucketName,
paths: [path],
});
policy.attachToRole(this);
}