I have created a python script to get my AWS RDS instances Endpoint. 

```
#!/usr/bin/env python
import boto3`
rds = boto3.client('rds')
try:
# get all of the db instances
    dbs = rds.describe_db_instances()
for db in dbs['DBInstances']:
print ("%s@%s:%s %s") % (
        db['MasterUsername'],
        db['Endpoint']['Address'],
        db['Endpoint']['Port'],
        db['DBInstanceStatus'])
except Exception as error:
print error

```

It connects to RDS and I see data in dbs variable. 

```
{u'DBInstances': [{u'PubliclyAccessible': False, u'MasterUsername':     'dbadmin', u'MonitoringInterval': 0, u'LicenseModel': 'general-public-license', ...

```

Unfortunately, I got en error:

```
File "rds2.py", line 7
for db in dbs['DBInstances']:
  ^
SyntaxError: invalid syntax`

```

Could you tell me whats wrong? My goal is to get Endpoint of RDS with TAG (Name = APP1).

Thanks.