Question: i have a android app of version 4.20 inside 10M sqlitedb, now i have a app of version 4.21 inside 100M sqlitedb,i want upgrade 4.20 to 4.21, when it upgrade have completed, i find the sqlite size still keep 10M in 4.21 app.

so the question is how to override sqlitedb when upgrade app 4.20 -> 4.21 。

---

My business is: app will have a lot of data synchronization. In order to optimize, every app will fill in initialization data into SQLite when it is published. Therefore, after each app have upgraded, I hope to completely overwrite SQLite。

any help is very apprecated.

Answer: 
> 
> I dont have a user created in IAM but have a role created and assigned.
> 
> 
> 

If you have only IAM role for RDS, you still need IAM user or some other role (e.g. instance role) which can **assume** (`iam:AssumeRole`) the RDS's role.

Then, you have to use boto3' [assume\_role](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sts.html#STS.Client.assume_role) to get temp credentials which you can then use to create new boto3 session for your RDS.
You should check the role of your User first.
Then, it should be .aws/credentials

```
cat credential
[default]
aws_access_key_id = *****
aws_secret_access_key = ****

```