Hi,
I"m using typescript aws template and now the serverless.yml is serverless.ts.
However, i’m have a problem on type declaration to define my resources.
Sample in serverless.yml (working):
resources:
Resources:
IamRoleLambdaExecution:
Properties:
Path: /eng-roles/
PermissionsBoundary: "arn:aws:iam::#{AWS::AccountId}:policy/roles-boundary"
Try #01 in serverless.ts (not working)
resources: {
Resources: {
IamRoleLambdaExecution: {
Type: "IamRoleLambdaExecution",
Properties: {
Path: "/eng-roles/",
PermissionsBoundary: "arn:aws:iam::#{AWS::AccountId}:policy/roles-boundary"
}
}
}
}
Try #02 in serverless.ts (also not working)
resources: {
Resources: [
{
Type: "IamRoleLambdaExecution",
Properties: {
Path: "/eng-roles/",
PermissionsBoundary: "arn:aws:iam::#{AWS::AccountId}:policy/roles-boundary"
}
}
]
}
How can i adjust my resource definition?
Thanks