i was new to aws boto3. Goal : i want pull all compliant& non-compliant rule from aws-config service and write in txt file as non-compliant_config.txt
The problem is when i when run this code , its not iterating through all the rules(my guess it stops at first 25)
import boto3
#counter to count total number of rules(objects) this code iterated.
count = 0
client = boto3.client('config')
response = client.describe_config_rules()
for i in response['ConfigRules']:
count = count +1
print(i)
print(count)
last line in my code print(count) says 25
Final point : i want to print(or write to txt file) all the AWS config-rules. Note : i also tried to look at boto3 pagination documentation, but i cant understand it to how to use it.