changed the variable.tf to use array for keypair and security group.