'Allow lambda to access particular s3 bucket in serverless config
How can I allow specific lambda to access to a particular s3 bucket in the serverless.yml?
For example, I am porting file upload functionality to lambda by using serverless. To upload a file to a particular s3 bucket, I need to allow lambda to access to that s3 bucket. How can I do this in the serverless.yml?
Solution 1:[1]
My reputation does not allow me to comment, but usually, when Terraform insists on changing a resource, it will tell you what the current value of the property is and what it wants to change it to. (usually null)
As a workaround, try to add the property default_identity_type and set it to whatever value Terraform says it has, and then run a plan again to see if it changes the behavior.
EDIT: I just had a look at the screenshot. So the value you should set as a workaround is "FirstPartyIdentity"
Looking at the documentation it should be optional, but obviously it is not. Maybe this is an error in the documentation. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cosmosdb_account
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
