December 2017
Intermediate to advanced
404 pages
9h 28m
English
The first concept is the idea of sessions. A session is an object from the SDK that contains configuration information that we can then use with other objects to communicate with AWS services.
The session objects can be shared and used by different pieces of code. The object should be cached and reused. Creating a new session object involves loading the configuration data, so reusing it saves resources. session objects are safe to use concurrently as long as they don't get modified.
To create a new session object, we can simply write the following code:
session, err := session.NewSession()
This will create a new session and store it in a variable called session. If we create a new session via the preceding code, default configurations ...
Read now
Unlock full access