

#Role and policy

tfs create -t iam-role@demo -i demo1role
tfs create -t iam-policy@demo -i tf1policy -P tf1role
tfs create -t iam-rel@demo -i tf1rel -P tf1policy -r 'role="tf1role"' -r 'policy="tf1policy"'

#S3
 tfs create -t s3@demo -i tf1bucket

###########
#
#
###########

tfs graph
tfs create -t iam@aws2 -i iam1 -r 'iam_role_name="role_de_test"'
tfs create -t lmbd -i lambda1 -P iam1

tfs graph
tfs graph -i iam1
tfs graph -e lambda1

tfs init 
tfs init -w
tfs plan -w
tfs apply (tfs apply -i iam1 | tfs apply -b iam1)
tfs destroy

tfs apply -b iam1


tfs init -i lambda1 -w
tfs plan 
tfs apply -b lambda1
tfs destroy -b iam1

