I am not able to find out any function which can get the content of buildspec.yml file. what i have been able to do so far is list all the projects in my AWS account
"`"
client = boto3.client('codebuild')
response = client.batch_get_projects(
names=[
'ABC',
'XYZ'
]
)
for i in response['projects']:
for key,value in i.items():
if key in ("name","source"):
print(key, value)
output -
name ABC
source {'type': 'CODEPIPELINE', 'buildspec': 'buildspec.yml', 'insecureSsl': False}
name XYZ
source {'type': 'CODEPIPELINE', 'buildspec': 'buildspec.yml', 'insecureSsl': False}